Reference actual classes

This commit is contained in:
Miles Starkenburg 2015-08-08 13:15:28 -07:00
parent 60dbcbdcde
commit 468cdfcc85
1 changed files with 5 additions and 5 deletions

View File

@ -16,11 +16,11 @@ module ActiveRecord
config.app_generators.orm :active_record, :migration => true,
:timestamps => true
config.app_middleware.insert_after "::ActionDispatch::Callbacks",
"ActiveRecord::QueryCache"
config.app_middleware.insert_after ::ActionDispatch::Callbacks,
ActiveRecord::QueryCache
config.app_middleware.insert_after "::ActionDispatch::Callbacks",
"ActiveRecord::ConnectionAdapters::ConnectionManagement"
config.app_middleware.insert_after ::ActionDispatch::Callbacks,
ActiveRecord::ConnectionAdapters::ConnectionManagement
config.action_dispatch.rescue_responses.merge!(
'ActiveRecord::RecordNotFound' => :not_found,
@ -78,7 +78,7 @@ module ActiveRecord
initializer "active_record.migration_error" do
if config.active_record.delete(:migration_error) == :page_load
config.app_middleware.insert_after "::ActionDispatch::Callbacks",
config.app_middleware.insert_after ::ActionDispatch::Callbacks,
"ActiveRecord::Migration::CheckPending"
end
end