Class: LoveMonster::Love
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- LoveMonster::Love
- Defined in:
- app/models/love_monster/love.rb
Instance Method Summary collapse
Instance Method Details
#ensure_to_and_from_are_distinct ⇒ Object
13 14 15 |
# File 'app/models/love_monster/love.rb', line 13 def ensure_to_and_from_are_distinct errors.add(:to_user_id, "You love yourself enough already. Go love someone else!") if from_user_id == to_user_id end |