Class: Jabe::Comment

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Gravtastic
Defined in:
app/models/jabe/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nicknameObject

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