accounts_client 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/accounts/belongs_to_user.rb +2 -2
  2. metadata +1 -1
@@ -19,12 +19,12 @@ module Accounts
19
19
  # @option options [TrueClass] force_service_call - forces call to users-ws
20
20
  # @return [PadmaUser / PadmaUserDecorator]
21
21
  def user(options={})
22
- padma_user ||= Rails.cache.read([username,"padma_user"])
22
+ padma_user ||= Rails.cache.read([username,"btu_padma_user"])
23
23
 
24
24
  if padma_user.nil? || options[:force_service_call]
25
25
  padma_user = PadmaUser.find(username)
26
26
  if padma_user
27
- Rails.cache.write([self,"padma"], padma_user, :expires_in => 5.minutes)
27
+ Rails.cache.write([username,"btu_padma_user"], padma_user, :expires_in => 5.minutes)
28
28
  end
29
29
  end
30
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accounts_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: