Sha256: 8fc10aab0747b53a230006a303ce2aee80021048cb2b9f27560915533e580a30
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
module ActiveRecord::Turntable class Railtie < Rails::Railtie rake_tasks do load "active_record/turntable/railties/databases.rake" end # rails loading hook ActiveSupport.on_load(:before_initialize) do ActiveSupport.on_load(:active_record) do ActiveRecord::Base.send(:include, ActiveRecord::Turntable) end end # Swap QueryCache Middleware initializer "turntable.swap_query_cache_middleware" do |app| app.middleware.swap ActiveRecord::QueryCache, ActiveRecord::Turntable::Rack::QueryCache end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-turntable-1.1.2 | lib/active_record/turntable/railtie.rb |
activerecord-turntable-1.1.1 | lib/active_record/turntable/railtie.rb |