mirror of https://github.com/rails/rails
Reference actual classes
This commit is contained in:
parent
60dbcbdcde
commit
468cdfcc85
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue