app/models/comment.rb
# Creates notifications related to this comment and sends notification emails
Creates notifications related to this comment and sends notification emails
Creates notifications related to this comment and sends notification emails
def send_notifications(community)
    if !listing.author.id.eql?(author.id)
      if listing.author.should_receive?("email_about_new_comments_to_own_listing")
        MailCarrier.deliver_now(PersonMailer.new_comment_to_own_listing_notification(self, community))
      end
    end
    listing.notify_followers(community, author, false)
  end
def send_notifications ( community ) if ! listing . author . id . eql? ( author . id ) if listing . author . should_receive? ( "email_about_new_comments_to_own_listing" ) MailCarrier . deliver_now ( PersonMailer . new_comment_to_own_listing_notification ( self , community ) ) end end listing . notify_followers ( community , author , false ) end
Creates notifications related to this comment and sends notification emails
Creates notifications related to this comment and sends notification emails
community