Class: Atreides::Vote

Inherits:
Base
  • Object
show all
Includes:
Extendable
Defined in:
app/models/atreides/vote.rb

Instance Method Summary collapse

Methods inherited from Base

#dom_id, #to_param

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