has_token 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/has_token.gemspec +1 -1
- data/lib/has_token.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/has_token.gemspec
CHANGED
data/lib/has_token.rb
CHANGED
@@ -30,7 +30,7 @@ module HasToken
|
|
30
30
|
)
|
31
31
|
|
32
32
|
class_inheritable_accessor :has_token_options
|
33
|
-
return false unless
|
33
|
+
return false unless has_token_options.nil?
|
34
34
|
self.has_token_options = options
|
35
35
|
|
36
36
|
if options[:to_param]
|
@@ -48,7 +48,7 @@ module HasToken
|
|
48
48
|
|
49
49
|
include InstanceMethods
|
50
50
|
|
51
|
-
send
|
51
|
+
send has_token_options[:callback], :create_token
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|