Sha256: 1ae4489d8dbbae90fcdd65938c058e4f81bfb579e30afe21854eebcdb4c93875

Contents?: true

Size: 862 Bytes

Versions: 48

Compression:

Stored size: 862 Bytes

Contents

class <%= class_name -%>Mailer < ActionMailer::Base
  default :from => "no-reply@#{host}"

  def forgot_password(<%= name.underscore %>, key)
    @<%= name.underscore %>, @key = <%= name.underscore %>, key
    mail( :subject => "#{app_name} -- forgotten password",
          :to      => <%= name.underscore %>.email_address )
  end

<% if invite_only? -%>
  def invite(<%= name.underscore %>, key)
    @<%= name.underscore %>, @key = <%= name.underscore %>, key
    mail( :subject => "Invitation to #{app_name}",
          :to      => <%= name.underscore %>.email_address )
  end

<% elsif options[:activation_email] %>
  def activation(<%= name.underscore %>, key)
    @<%= name.underscore %>, @key = <%= name.underscore %>, key
    mail( :subject => "#{app_name} -- activate",
          :to      => <%= name.underscore %>.email_address )
  end

<% end -%>
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
hobo-2.2.6 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.2.5 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.2.4 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.2.3 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.2.2 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.2.1 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.2.0 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.1.2 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.1.1 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.1.0 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.1.0.pre4 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.1.0.pre3 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.1.0.pre2 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.1.0.pre1 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.0.1 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.0.0 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.0.0.pre10 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.0.0.pre9 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-2.0.0.pre8 lib/generators/hobo/user_mailer/templates/mailer.rb.erb
hobo-1.3.3 lib/generators/hobo/user_mailer/templates/mailer.rb.erb