-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
feature.rb
23 lines (21 loc) · 938 Bytes
/
feature.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Rodauth
Feature.define(:rails) do
# Assign feature and feature configuration to constants for introspection.
Rodauth::Rails::Feature = self
Rodauth::Rails::FeatureConfiguration = self.configuration
require "rodauth/rails/feature/base"
require "rodauth/rails/feature/callbacks"
require "rodauth/rails/feature/csrf"
require "rodauth/rails/feature/render"
require "rodauth/rails/feature/email" if defined?(ActionMailer)
require "rodauth/rails/feature/instrumentation"
require "rodauth/rails/feature/internal_request"
include Rodauth::Rails::Feature::Base
include Rodauth::Rails::Feature::Callbacks
include Rodauth::Rails::Feature::Csrf
include Rodauth::Rails::Feature::Render
include Rodauth::Rails::Feature::Email if defined?(ActionMailer)
include Rodauth::Rails::Feature::Instrumentation
include Rodauth::Rails::Feature::InternalRequest
end
end