Class: Discussion
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Discussion
- Defined in:
- app/models/discussion.rb
Instance Attribute Summary collapse
-
#new_message ⇒ Object
Returns the value of attribute new_message.
Instance Method Summary collapse
Instance Attribute Details
#new_message ⇒ Object
Returns the value of attribute new_message.
5 6 7 |
# File 'app/models/discussion.rb', line 5 def @new_message end |
Instance Method Details
#new_message_attributes=(attributes) ⇒ Object
12 13 14 15 16 17 |
# File 'app/models/discussion.rb', line 12 def (attributes) unless attributes["body"].blank? self. ||= ForumMessage.new(:discussion=>self) self..attributes = attributes end end |
#save_new_message ⇒ Object
8 9 10 |
# File 'app/models/discussion.rb', line 8 def self..save if self. end |