active_session 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ActiveSession
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -9,7 +9,7 @@ module ActiveSession
9
9
  foreign_key = options.fetch(:foreign_key, "#{name}_id").to_sym
10
10
  primary_key = options.fetch(:primary_key, "id").to_sym
11
11
  finder_method = options.fetch(:finder_method, "find_for_authentication").to_sym
12
- persists = options.fetch(:persists, foreign_key).to_sym
12
+ persists = options.fetch(:persists, foreign_key)
13
13
 
14
14
  extend ActiveModel::Naming
15
15
  include ActiveModel::AttributeMethods
@@ -44,7 +44,7 @@ module ActiveSession
44
44
  end
45
45
  END
46
46
 
47
- persists(persists)
47
+ persists(persists == true ? foreign_key : persists)
48
48
  end
49
49
 
50
50
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2011-10-19 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
- requirement: &21168040 !ruby/object:Gem::Requirement
17
+ requirement: &17538940 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.1
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *21168040
25
+ version_requirements: *17538940
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activesupport
28
- requirement: &21167500 !ruby/object:Gem::Requirement
28
+ requirement: &17538440 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 3.1.1
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *21167500
36
+ version_requirements: *17538440
37
37
  description: ActiveModel session
38
38
  email:
39
39
  - qoobaa@gmail.com