Module: FatFreeCRM::CommentExtensions::InstanceMethods
- Defined in:
- lib/fat_free_crm/comment_extensions.rb
Instance Method Summary collapse
Instance Method Details
#add_comment_by_user(comment_body, user) ⇒ Object
21 22 23 |
# File 'lib/fat_free_crm/comment_extensions.rb', line 21 def add_comment_by_user(comment_body, user) comments.create(comment: comment_body, user: user) if comment_body.present? end |