diff options
Diffstat (limited to 'activerecord/lib/active_record/rails.rb')
-rw-r--r-- | activerecord/lib/active_record/rails.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/rails.rb b/activerecord/lib/active_record/rails.rb index e7de699974..69f38e75c8 100644 --- a/activerecord/lib/active_record/rails.rb +++ b/activerecord/lib/active_record/rails.rb @@ -3,13 +3,14 @@ # here. This is needed for correctly setting up the middleware. # In the future, this might become an optional require. require "action_controller/rails" +require "active_record/rails/controller_runtime" module ActiveRecord class Plugin < Rails::Plugin plugin_name :active_record include_modules_in "ActiveRecord::Base" - config.action_controller.include "ActiveRecord::ControllerRuntime" + config.action_controller.include "ActiveRecord::Rails::ControllerRuntime" rake_tasks do load "active_record/rails/databases.rake" |