Sha256: 36d2bf36474b216517bb4bfcecaf2b1b62b18d0b92552868a639e23d11250e44
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
module RestrictCache module RailsExt module ActiveRecord module Base extend ActiveSupport::Concern module ClassMethods %i(find_with_restrict_cache find_with_rc).each do |key| delegate key, to: :all end end def restrict_cache RestrictCache.add(self) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restrict_cache-0.1.2 | lib/restrict_cache/rails_ext/active_record/base.rb |