Sha256: 5a7151631a80213e61ab8f89a804573adf4388f728367457d6905ba3a09ee397
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
module RestrictCache class Railtie < ::Rails::Railtie initializer "restrict_cache" do require "restrict_cache/action_controller_ext" require "restrict_cache/active_record_ext" ActiveSupport.on_load(:action_controller) do ::ActionController::Base.send(:include, RestrictCache::ActionControllerExt) end ActiveSupport.on_load(:active_record) do ::ActiveRecord::Base.send(:include, RestrictCache::ActiveRecordExt) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restrict_cache-0.1.0 | lib/restrict_cache/railtie.rb |