registrar-rails 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/registrar/rails/controller_extensions.rb +4 -4
- data/lib/registrar/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5b0cc9d545b5950550457f0accb3a9b415651f
|
4
|
+
data.tar.gz: f663ec082ea8604da295ee0e8ebc3cfc475b28c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c0922a9d0a0fa3948b7a8883ec26e898f52b124c7e0c5218f8213a9c04a7d19dd9d70eb749df93fa4b6274380d1767849c249b3ec9edfa3a2c48e55f9d7b5f1
|
7
|
+
data.tar.gz: db358ff0d893f1abbf7255a7d61ef94b6ac77ab009c200d8dc707703cb59a26b51104d47373647288bfcf789fd2c4df5dad26358bfdfc0ca17a2b6872e1e9833
|
@@ -37,16 +37,16 @@ module Registrar
|
|
37
37
|
private
|
38
38
|
|
39
39
|
def fetch_profile_from_session
|
40
|
-
if session[CURRENT_PROFILE_UID]
|
41
|
-
Registrar::Middleware::config.handler.call(cached_profile)
|
40
|
+
if uid = session[CURRENT_PROFILE_UID]
|
41
|
+
Registrar::Middleware::config.handler.call(cached_profile(uid))
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
def cached_profile
|
45
|
+
def cached_profile(uid)
|
46
46
|
{
|
47
47
|
"provider" => {
|
48
48
|
"name" => "session",
|
49
|
-
"uid" =>
|
49
|
+
"uid" => uid
|
50
50
|
}
|
51
51
|
}
|
52
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: registrar-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Owiesniak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|