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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17d8c356efd4f2b89e8e8f7dbb99898fc9b35250
4
- data.tar.gz: 269c09b583a7cc2e5501394233ad063a480ddc60
3
+ metadata.gz: 7e5b0cc9d545b5950550457f0accb3a9b415651f
4
+ data.tar.gz: f663ec082ea8604da295ee0e8ebc3cfc475b28c8
5
5
  SHA512:
6
- metadata.gz: 7051428a785342b9ddc3bf82c8dd73bfe1f7db7a2dbb87a792997dfca235ae70e8af1e52374f50f1d70b8bfe406ee9894febaa87f156fae4c36a47534e56eda6
7
- data.tar.gz: 7e1e30da7a0012a8c5f82d8466967dd80c592485df256e93f1ca871a80e45d93c0531942a9d65eb04d7a16ce5ca9f7053c3cdd2a352f6af9cebe376fdd529075
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" => session[CURRENT_PROFILE_UID]
49
+ "uid" => uid
50
50
  }
51
51
  }
52
52
  end
@@ -1,5 +1,5 @@
1
1
  module Registrar
2
2
  module Rails
3
- VERSION = "0.3"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  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: '0.3'
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-10 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails