Class: Tuttle::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Tuttle::ApplicationController
- Defined in:
- app/controllers/tuttle/application_controller.rb
Direct Known Subclasses
CancancanController, DeviseController, HomeController, RailsController, RubyController
Instance Method Summary collapse
Instance Method Details
#check_reload_status ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/tuttle/application_controller.rb', line 7 def check_reload_status return unless Tuttle::Engine.reload_needed && !Rails.configuration.eager_load Rails.logger.warn('Tuttle: Eager-loading application') # Rails::Application::Finisher defines an initializer that *would* execute # these two lines if eager_load were enabled # ActiveSupport.run_load_hooks(:before_eager_load, Rails.application) ActiveSupport::Notifications.instrument 'tuttle.perform_eager_load' do Rails.configuration.eager_load_namespaces.each(&:eager_load!) Tuttle::Engine.reload_needed = false end end |