lam_auth 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lam_auth/controller_extensions.rb +3 -3
- data/lib/lam_auth/version.rb +1 -1
- metadata +4 -4
@@ -1,8 +1,8 @@
|
|
1
1
|
module LamAuth
|
2
2
|
module ControllerExtensions
|
3
3
|
def lam_auth_for(klass)
|
4
|
-
|
5
|
-
self.
|
4
|
+
class_attribute :user_model_class_name
|
5
|
+
self.user_model_class_name = klass
|
6
6
|
|
7
7
|
helper_method(:current_user, :logged_in?)
|
8
8
|
before_filter :login_from_cookie
|
@@ -14,7 +14,7 @@ module LamAuth
|
|
14
14
|
|
15
15
|
module ClassMethods
|
16
16
|
def user_model_class
|
17
|
-
|
17
|
+
user_model_class_name.to_s.classify.constantize
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/lib/lam_auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lam_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Max Macovsky
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-12-02 00:00:00 +03:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|