Sha256: ecc09adca66c0fadad807bf2ec32519a9c1bf6512587b4fafc598fa09db5ab8d

Contents?: true

Size: 454 Bytes

Versions: 8

Compression:

Stored size: 454 Bytes

Contents

class <%= class_name -%>Mailer < ActionMailer::Base
  
  def forgot_password(user, key)
    host = Hobo::Controller.request_host
    app_name = Hobo::Controller.app_name || host
    @subject    = "#{app_name} -- forgotten password"
    @body       = { :user => user, :key => key, :host => host, :app_name => app_name }
    @recipients = user.email_address
    @from       = "no-reply@#{host}"
    @sent_on    = Time.now
    @headers    = {}
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hobo-0.8.8 rails_generators/hobo_user_model/templates/mailer.rb
hobo-0.8.2 rails_generators/hobo_user_model/templates/mailer.rb
hobo-0.8.3 rails_generators/hobo_user_model/templates/mailer.rb
hobo-0.8.4 rails_generators/hobo_user_model/templates/mailer.rb
hobo-0.8.1 rails_generators/hobo_user_model/templates/mailer.rb
hobo-0.8.5 rails_generators/hobo_user_model/templates/mailer.rb
hobo-0.8.7 rails_generators/hobo_user_model/templates/mailer.rb
hobo-0.8.6 rails_generators/hobo_user_model/templates/mailer.rb