lobby 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
data/lib/lobby/version.rb~
CHANGED
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.
|
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
|