Module: ArResqueCounterCache::ActiveRecord::Associations::AsyncUpdateCounters
- Defined in:
- lib/ar-resque-counter-cache/active_record.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
16 17 18 19 20 |
# File 'lib/ar-resque-counter-cache/active_record.rb', line 16 def self.included(base) base.class_eval do alias_method_chain :update_counters, :async end end |
Instance Method Details
#update_counters_with_async(record) ⇒ Object
11 12 13 14 |
# File 'lib/ar-resque-counter-cache/active_record.rb', line 11 def update_counters_with_async(record) # TODO make async? update_counters_without_async(record) end |