diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-01-21 12:44:07 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-01-21 12:44:07 -0600 |
commit | 73cc5f270a5c2a2eab76c6c02615fec608822494 (patch) | |
tree | 7d9a145c370a3fd6439edc6907504186415da126 /railties | |
parent | 82334a74311a3e0a8a1454d0a4a2ebf3c1138cea (diff) | |
download | rails-73cc5f270a5c2a2eab76c6c02615fec608822494.tar.gz rails-73cc5f270a5c2a2eab76c6c02615fec608822494.tar.bz2 rails-73cc5f270a5c2a2eab76c6c02615fec608822494.zip |
Setup ActiveRecord QueryCache middleware in the initializer
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/initializer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index dd4d483233..be04873855 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -408,6 +408,7 @@ Run `rake gems:install` to install the missing gems. if configuration.frameworks.include?(:active_record) ActiveRecord::Base.configurations = configuration.database_configuration ActiveRecord::Base.establish_connection + configuration.middleware.use ActiveRecord::QueryCache end end |