lobby 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,6 @@
1
1
  module Lobby
2
2
  class ConfirmationMailer < ActionMailer::Base
3
3
 
4
- helper :application
5
-
6
4
  default :from => APP_CONFIG['registration_mailer']['from']
7
5
 
8
6
  def registration( user )
@@ -0,0 +1,30 @@
1
+ module Lobby
2
+ class ConfirmationMailer < ActionMailer::Base
3
+
4
+ helper :application
5
+
6
+ default :from => APP_CONFIG['registration_mailer']['from']
7
+
8
+ def registration( user )
9
+ @confirmation_url = confirm_url( :registration, user.signup_token )
10
+ mail( :to => user.email, :subject => t( '.subject' ))
11
+ end
12
+
13
+ def resend_signup_token( user )
14
+ @user = user
15
+ @confirmation_url = confirm_url( :registration, @user.signup_token )
16
+ mail( :to => user.email, :subject => t( '.subject' ))
17
+ end
18
+
19
+ def send_password_reset( user )
20
+ @confirmation_url = recover_password_form_url( :token => user.password_token )
21
+ mail( :to => user.email, :subject => t( '.subject' ))
22
+ end
23
+
24
+ def new_email_request( user )
25
+ @user = user
26
+ @confirmation_url = new_email_url( @user.new_email_token )
27
+ mail( :to => @user.new_email, :subject => t( '.subject' ))
28
+ end
29
+ end
30
+ end
data/lib/lobby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lobby
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Lobby
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lobby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -228,6 +228,7 @@ extra_rdoc_files: []
228
228
  files:
229
229
  - app/forms/lobby/password_forgotten_form.rb
230
230
  - app/mailers/lobby/confirmation_mailer.rb
231
+ - app/mailers/lobby/confirmation_mailer.rb~
231
232
  - app/assets/stylesheets/lobby/application.css
232
233
  - app/assets/javascripts/lobby/application.js
233
234
  - app/controllers/lobby/application_controller.rb