Class: Jabe::Comment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Jabe::Comment
- Includes:
- Gravtastic
- Defined in:
- app/models/jabe/comment.rb
Instance Attribute Summary collapse
-
#nickname ⇒ Object
Returns the value of attribute nickname.
Instance Method Summary collapse
Instance Attribute Details
#nickname ⇒ Object
Returns the value of attribute nickname.
8 9 10 |
# File 'app/models/jabe/comment.rb', line 8 def nickname @nickname end |
Instance Method Details
#send_notification(request) ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/models/jabe/comment.rb', line 18 def send_notification(request) begin CommentMailer.notification(self, request).deliver rescue => e logger.error "#{e}\n#{e.backtrace.join("\n")}" end end |