diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-11-18 16:07:23 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:09:00 -0300 |
commit | 375aaa9db1bb808f9126e3a057c80fca0c631ba6 (patch) | |
tree | 671e32c5d50d4948d99b4c48bd0a01c3ea72e3a4 /railties/lib | |
parent | d47224190cdb309cdc042876b8fd4b9378b8fe30 (diff) | |
download | rails-375aaa9db1bb808f9126e3a057c80fca0c631ba6.tar.gz rails-375aaa9db1bb808f9126e3a057c80fca0c631ba6.tar.bz2 rails-375aaa9db1bb808f9126e3a057c80fca0c631ba6.zip |
Enable IdentityMap when generating new apps.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb index 6e515756fe..b7f64af339 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -57,5 +57,10 @@ module <%= app_const_base %> # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] + +<% unless options[:skip_active_record] -%> + # Enable IdentityMap for Active Record, to disable set to false or remove the line below. + config.active_record.identity_map = true +<% end -%> end end |