Class: Jabe::Comment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PublicEntryUrl

included, #public_entry_url

Instance Attribute Details

#nicknameObject

Returns the value of attribute nickname.



11
12
13
# File 'app/models/jabe/comment.rb', line 11

def nickname
  @nickname
end

#requestObject

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_notificationObject



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