Sha256: bbbd009c187483562629252b529af19ba8c7334a3cd0405e206426fa704802d7
Contents?: true
Size: 439 Bytes
Versions: 18
Compression:
Stored size: 439 Bytes
Contents
class Mailer < ActionMailer::Base if Rails.version >= "3" default :from => "from@example.com", :to => "to@example.com" def email(body = "body") mail(:subject => "email") do |format| format.text { render :text => body } end end else def email(body_text = "body") recipients EMAIL_RECIPIENT from EMAIL_SENDER subject "email" body body_text end end end
Version data entries
18 entries across 18 versions & 1 rubygems