Sha256: 1b6a02b14b3a6ee55cb7d95d8b86ddf563776c87aaf7d69b53f1585a3a0c4bb4

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 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_welcome_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

2 entries across 2 versions & 1 rubygems

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