Skip to content
Browse files

Read from config, because AR may not be loaded yet.

  • Loading branch information...
1 parent 938f168 commit 421643bb3de664e1d931a2f5b9801099bd87a9db @miloops miloops committed Nov 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railtie.rb
View
2 activerecord/lib/active_record/railtie.rb
@@ -80,7 +80,7 @@ class Railtie < Rails::Railtie
initializer "active_record.identity_map" do |app|
config.app_middleware.insert_after "::ActionDispatch::Callbacks",
- "ActiveRecord::IdentityMap::Middleware" if ActiveRecord::IdentityMap.enabled?
+ "ActiveRecord::IdentityMap::Middleware" if config.active_record.identity_map
end
config.after_initialize do

0 comments on commit 421643b

Please sign in to comment.
Something went wrong with that request. Please try again.