droom 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/droom/user.rb +2 -1
- data/lib/droom/version.rb +1 -1
- metadata +1 -1
data/app/models/droom/user.rb
CHANGED
@@ -24,6 +24,7 @@ module Droom
|
|
24
24
|
:encryptor => :sha512
|
25
25
|
|
26
26
|
before_create :ensure_authentication_token # provided by devise
|
27
|
+
before_create :ensure_confirmation_token # provided by devise
|
27
28
|
|
28
29
|
attr_accessor :newly_activated, :update_person_email, :confirm, :remove_person
|
29
30
|
|
@@ -197,7 +198,7 @@ module Droom
|
|
197
198
|
# If using `msg`, this defines the variables available in message templates.
|
198
199
|
#
|
199
200
|
def for_email
|
200
|
-
|
201
|
+
generate_confirmation_token! unless confirmation_token?
|
201
202
|
{
|
202
203
|
:informal_name => informal_name,
|
203
204
|
:formal_name => formal_name,
|
data/lib/droom/version.rb
CHANGED