Module: SecondLevelCache::ActiveRecord::Base::ClassMethods
- Defined in:
- lib/second_level_cache/active_record/base.rb
Instance Method Summary collapse
Instance Method Details
#update_counters(id, counters) ⇒ Object
17 18 19 20 21 |
# File 'lib/second_level_cache/active_record/base.rb', line 17 def update_counters(id, counters) super(id, counters).tap do Array(id).each { |i| expire_second_level_cache(i) } end end |