Sha256: 637045eb145d49650ab334f1701329b1f36d3c0949dee3101856ff09b02b5129
Contents?: true
Size: 724 Bytes
Versions: 7
Compression:
Stored size: 724 Bytes
Contents
class <%= class_name -%>Mailer < ActionMailer::Base default :from => "no-reply@#{host}" def forgot_password(user, key) set_variables(user, key) mail( :subject => "#{app_name} -- forgotten password", :to => user.email_address ) end <% if invite_only? -%> def invite(user, key) set_variables(user, key) mail( :subject => "Invitation to #{app_name}", :to => user.email_address ) end <% elsif options[:activation_email] %> def activation(user, key) set_variables(user, key) mail :subject => "#{app_name} -- activate", :to => user.email_address end <% end -%> private def set_variables(user, key) @user = user @key = key end end
Version data entries
7 entries across 7 versions & 1 rubygems