Sha256: f1f2939e1a1438d52c9ddec90e0f561d79c592325bcbae23a3bfd4e3f0c26063
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
module RestrictCache class Railtie < ::Rails::Railtie initializer "restrict_cache" do require "restrict_cache/rails_ext/all" ActiveSupport.on_load(:action_controller) do ::ActionController::Base.send( :include, RestrictCache::RailsExt::ActionController) end ActiveSupport.on_load(:active_record) do ::ActiveRecord::Base.send( :include, RestrictCache::RailsExt::ActiveRecord::Base) ::ActiveRecord::Relation.send( :include, RestrictCache::RailsExt::ActiveRecord::Relation) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restrict_cache-0.1.2 | lib/restrict_cache/railtie.rb |