Module: Sorcery::Model::Adapters::Mongoid::InstanceMethods

Defined in:
lib/sorcery/model/adapters/mongoid.rb

Instance Method Summary collapse

Instance Method Details

#increment(attr) ⇒ Object



11
12
13
# File 'lib/sorcery/model/adapters/mongoid.rb', line 11

def increment(attr)
  self.inc(attr,1)
end