pipa-authmagic 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,7 +69,7 @@ module Authmagic
69
69
  def current_principal
70
70
  unless defined? @current_principal
71
71
  id = current_principal_id
72
- @current_principal = security_context.principal.first(id) if id
72
+ @current_principal = security_context.principal.find_by_id(id) if id
73
73
  end
74
74
  @current_principal
75
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipa-authmagic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Gunko
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-16 00:00:00 -08:00
12
+ date: 2009-01-17 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency