Sha256: 6fb32d879585385258dc97c4aa5120756235f2e3ecac35be90cdb6ffed5fe597
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# encoding: utf-8 class AdminMailer < ActionMailer::Base default from: proc { "\"Pages\" <support@kord.no>" } def error_report(error_report, from, description) @error_report = error_report @from = from @description = description short_message = @error_report[:message].gsub(/[\s\n]+/, " ")[0..80] mail( to: "system+error@kord.no", from: "\"Error reports\" <system+error@kord.no>", subject: "[#{PagesCore.config(:site_name)}] Error: #{short_message}" ) end def password_reset(user, url) @user = user @url = url mail( to: @user.email, subject: "Reset your password on #{PagesCore.config(:site_name)}" ) end def comment_notification(recipient, page, comment, url) @recipient = recipient @page = page @comment = comment @url = url mail( to: recipient, subject: "[#{PagesCore.config(:site_name)}] New comment on #{@page.name}" ) end def invite(invite, url) @invite = invite @url = url mail( to: @invite.email, subject: "#{PagesCore.config(:site_name)} has invited you to Pages" ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.5.1 | app/mailers/admin_mailer.rb |