Class: Jabe::Comment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Jabe::Comment
- Includes:
- Gravtastic, PublicEntryUrl, Rakismet::Model
- Defined in:
- app/models/jabe/comment.rb
Instance Attribute Summary collapse
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
Methods included from PublicEntryUrl
Instance Attribute Details
#nickname ⇒ Object
Returns the value of attribute nickname.
11 12 13 |
# File 'app/models/jabe/comment.rb', line 11 def nickname @nickname end |
#request ⇒ Object
Returns the value of attribute request.
11 12 13 |
# File 'app/models/jabe/comment.rb', line 11 def request @request end |
Instance Method Details
#send_notification ⇒ Object
24 25 26 27 28 29 30 |
# File 'app/models/jabe/comment.rb', line 24 def send_notification begin CommentMailer.notification(self).deliver rescue => e logger.error "#{e}\n#{e.backtrace.join("\n")}" end end |