class Eaco::Railtie
Initializer for Rails 3 and up.
-
Parses the configuration rules upon startup and, in development, after a console
reload!
. -
Installs {Controller} authorization filters in
ActionController::Base
.
Public Instance Methods
eaco.install_controller_runtime()
click to toggle source
Adds {Controller} to ActionController::Base
@!method install_controller_runtime
# File lib/eaco/railtie.rb, line 39 initializer 'eaco.install_controller_runtime' do # :nocov: ActiveSupport.on_load :action_controller do ActionController::Base.instance_eval do include Eaco::Controller end end # :nocov: end
eaco.parse_rules()
click to toggle source
Calls {Eaco.parse_default_rules_file!}
@!method parse_rules
# File lib/eaco/railtie.rb, line 20 initializer 'eaco.parse_rules' do # :nocov: Eaco.parse_default_rules_file! unless Rails.configuration.cache_classes if defined? ActiveSupport::Reloader ActiveSupport::Reloader.to_prepare { Eaco.parse_default_rules_file! } else ActionDispatch::Reloader.to_prepare { Eaco.parse_default_rules_file! } end end # :nocov: end