Class: Topic
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Topic
- Defined in:
- lib/generators/forum_monster/templates/models/topic.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Accessors.
Instance Method Summary collapse
-
#hit! ⇒ Object
Methods.
Instance Attribute Details
#body ⇒ Object
Accessors
9 10 11 |
# File 'lib/generators/forum_monster/templates/models/topic.rb', line 9 def body @body end |
Instance Method Details
#hit! ⇒ Object
Methods
25 26 27 |
# File 'lib/generators/forum_monster/templates/models/topic.rb', line 25 def hit! self.class.increment_counter :hits, id end |