Class: ThreadableComments::Comment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ThreadableComments::Comment
- Defined in:
- lib/threadable_comments/comment.rb
Instance Method Summary collapse
Instance Method Details
#reply(text, user) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/threadable_comments/comment.rb', line 15 def reply(text, user) Comment.create \ commentable: commentable, text: text, user_id: user.id, parent: self end |