rails_sso 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_sso/helpers.rb +2 -2
- data/lib/rails_sso/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc9aa46a5a4f9f8f1eb953b0767ff310a99d636d
|
4
|
+
data.tar.gz: 8634957ce88048f9f0794e2154891b4ec4c3e6ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6f08399712ad5fc5c340ec4cd271cca3ae0097e43e159575f9ccbfcf22837d2a0bab38e3d59c6655d55d5680694c741b66092e5937afe2e3da55900418ebaf3
|
7
|
+
data.tar.gz: ec0be05841ad1a4438c79af271479a3922c0e24d71e5a119708b7f520362bd5099667b80f70ef01316d1a619c675b4bf6d4d6605180aa27ce62d8d79f7af3e05
|
data/lib/rails_sso/helpers.rb
CHANGED
@@ -8,7 +8,7 @@ module RailsSso
|
|
8
8
|
|
9
9
|
def current_user
|
10
10
|
@current_user ||= fetch_user do |user|
|
11
|
-
|
11
|
+
cache_user(user)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
@@ -57,7 +57,7 @@ module RailsSso
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
60
|
+
def cache_user(data)
|
61
61
|
RailsSso::UpdateUser.new(data, update_user_options).call
|
62
62
|
end
|
63
63
|
|
data/lib/rails_sso/version.rb
CHANGED