Sha256: 0ea7e6891bab77a3b63b8992df3022a0a03afe611f9f46d38e6fc7f178ba4838

Contents?: true

Size: 397 Bytes

Versions: 24

Compression:

Stored size: 397 Bytes

Contents

class CommentMailer < ActionMailer::Base
  default :from => MySettings.from_email
  default_url_options[:host] = MySettings.site_url ? MySettings.site_url.gsub('http://', '') : 'localhost:3000'
  
  def comment_notification(email, comment)
    @post = comment.commentable
    @comment = comment
    mail(:to => email, :subject => "#{MySettings.site_name} - New Comment: #{@post.title}")
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.9 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.8 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.7 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.6 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.5 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.4 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.3 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.2 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.1 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.1.0 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.18 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.17 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.16 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.15 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.14 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.13 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.12 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.11 lib/forge/app/mailers/comment_mailer.rb
forge-cli-0.0.10 lib/forge/app/mailers/comment_mailer.rb