Class: Atreides::Vote
- Includes:
- Extendable
- Defined in:
- app/models/atreides/vote.rb
Instance Method Summary collapse
- #no! ⇒ Object
-
#yes! ⇒ Object
Instance Methods.
Methods inherited from Base
Instance Method Details
#no! ⇒ Object
38 39 40 |
# File 'app/models/atreides/vote.rb', line 38 def no! update_attributes!(:value => 0) end |
#yes! ⇒ Object
Instance Methods
34 35 36 |
# File 'app/models/atreides/vote.rb', line 34 def yes! update_attributes!(:value => 1) end |