Class: MerbAuth::UserMailer

Inherits:
Merb::MailController
  • Object
show all
Defined in:
app/mailers/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#activationObject



12
13
14
15
16
17
# File 'app/mailers/user_mailer.rb', line 12

def activation
  @ivar = params[MA[:single_resource]]
  Merb.logger.info "Sending Activation email to #{@ivar.email}"
  instance_variable_set("@#{MA[:single_resource]}", @ivar )
  render_utf8_mail :text => :activation, :layout => nil
end

#forgot_passwordObject



19
20
21
22
23
# File 'app/mailers/user_mailer.rb', line 19

def forgot_password
  @ivar = params[MA[:single_resource]]
  instance_variable_set("@#{MA[:single_resource]}", @ivar )
  render_utf8_mail :text => :forgot_password, :layout => nil
end

#signupObject



5
6
7
8
9
10
# File 'app/mailers/user_mailer.rb', line 5

def 
  @ivar = params[MA[:single_resource]]
  Merb.logger.info "Sending Signup to #{@ivar.email} with code #{@ivar.activation_code}"
  instance_variable_set("@#{MA[:single_resource]}", @ivar )
  render_utf8_mail :text => :signup, :layout => nil
end