droom 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- self.ensure_confirmation_token!
201
+ generate_confirmation_token! unless confirmation_token?
201
202
  {
202
203
  :informal_name => informal_name,
203
204
  :formal_name => formal_name,
@@ -1,3 +1,3 @@
1
1
  module Droom
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: droom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: