authie 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authie/config.rb +4 -0
- data/lib/authie/controller_extension.rb +2 -1
- data/lib/authie/session.rb +1 -1
- data/lib/authie/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 721f8e38c433954e5ba8db0482bd99a1d22bc5be
|
4
|
+
data.tar.gz: bce1c42caec7d276d0a54a4aae9a447e92ad8dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de1b61f6d168f52317cc248cafac501364af37cff355e3ca258cb33c70b1565b8093a5a2b89c81435920167e15be7e81ac1e7aa54a37ebf26539ec99cd092c0e
|
7
|
+
data.tar.gz: 427175384881e617289b231c63f629710cd3c7c53a54f9c3d971e3f4ec2ed2bb2640c03c614ba46948ca1f4e363ce7c4d2686e82b1c918d1d8e3ac7c6817812e
|
data/lib/authie/config.rb
CHANGED
@@ -5,7 +5,8 @@ module Authie
|
|
5
5
|
|
6
6
|
def self.included(base)
|
7
7
|
base.helper_method :logged_in?, :current_user, :auth_session
|
8
|
-
base.
|
8
|
+
before_action_method = base.respond_to?(:before_action) ? :before_action : :before_filter
|
9
|
+
base.public_send(before_action_method, :set_browser_id, :touch_auth_session)
|
9
10
|
end
|
10
11
|
|
11
12
|
private
|
data/lib/authie/session.rb
CHANGED
@@ -11,7 +11,7 @@ module Authie
|
|
11
11
|
self.table_name = "authie_sessions"
|
12
12
|
|
13
13
|
# Relationships
|
14
|
-
belongs_to :user, :polymorphic => true
|
14
|
+
belongs_to :user, {:polymorphic => true}.merge(Authie.config.user_relationship_options)
|
15
15
|
belongs_to :parent, :class_name => "Authie::Session"
|
16
16
|
|
17
17
|
# Scopes
|
data/lib/authie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Rails library for storing user sessions in a backend database
|
14
14
|
email:
|
@@ -50,9 +50,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
52
|
rubyforge_project:
|
53
|
-
rubygems_version: 2.
|
53
|
+
rubygems_version: 2.4.5
|
54
54
|
signing_key:
|
55
55
|
specification_version: 4
|
56
56
|
summary: A Rails library for storing user sessions in a backend database
|
57
57
|
test_files: []
|
58
|
-
has_rdoc:
|