Class: Vote
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Vote
- Defined in:
- app/models/vote.rb
Instance Method Summary collapse
Instance Method Details
#down? ⇒ Boolean
10 11 12 |
# File 'app/models/vote.rb', line 10 def down? self.value<0 end |
#up? ⇒ Boolean
6 7 8 |
# File 'app/models/vote.rb', line 6 def up? self.value>0 end |