Class: Achievement

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/templates/achievement.rb

Instance Method Summary collapse

Instance Method Details

#achieve(achiever) ⇒ Object



7
8
9
# File 'lib/generators/templates/achievement.rb', line 7

def achieve(achiever)
  achievings << Achieving.new(:achiever => achiever, :achievement => self)
end