Sha256: b9811ba64539ae5561b92565471d1da45fc4b794a26c102d790ef716e6171ebc

Contents?: true

Size: 926 Bytes

Versions: 1

Compression:

Stored size: 926 Bytes

Contents

class UserMailer < ActionMailer::Base
  default_url_options[:host] = "#{RulesEngine::ControllerUserMail.host}"
  
  def welcome_message(options)
    
    @recipients = options[:to_email]
    @from = "#{RulesEngine::ControllerUserMail.from}"
    @subject = "#{RulesEngine::ControllerUserMail.prefix} Account Created"

    @body[:to_name] = options[:to_name]
    @body[:to_url] = "http://#{RulesEngine::ControllerUserMail.host}#{user_pswd_reset_path(:token => options[:token])}"
    
    @sent_on = Time.current
  end    
  
  def forgot_password(options)
    @recipients = options[:to_email]
    @from = "#{RulesEngine::ControllerUserMail.from}"
    @subject = "#{RulesEngine::ControllerUserMail.prefix} Reset Password"

    @body[:to_name] = options[:to_name]
    @body[:to_url] = "http://#{RulesEngine::ControllerUserMail.host}#{user_pswd_reset_path(:token => options[:token])}"
    
    @sent_on = Time.current
  end    
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rules_engine_users-0.0.1 rails_generators/templates/app/models/user_mailer.rb