Module: Mongoid::MagicCounterCache::LegacyCache

Defined in:
lib/mongoid/magic_counter_cache.rb

Instance Method Summary collapse

Instance Method Details

#actual_model_nameObject


45
46
47
# File 'lib/mongoid/magic_counter_cache.rb', line 45

def actual_model_name
  model_name
end

#increment_association(association, counter_name, inc) ⇒ Object


49
50
51
# File 'lib/mongoid/magic_counter_cache.rb', line 49

def increment_association(association, counter_name, inc)
  association.inc(counter_name, inc)
end