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.
@@ -1,8 +1,8 @@
1
1
  module LamAuth
2
2
  module ControllerExtensions
3
3
  def lam_auth_for(klass)
4
- class_inheritable_writer :user_model_class
5
- self.user_model_class = klass
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
- read_inheritable_attribute(:user_model_class).to_s.classify.constantize
17
+ user_model_class_name.to_s.classify.constantize
18
18
  end
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module LamAuth
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
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-07-23 00:00:00 +04:00
19
+ date: 2011-12-02 00:00:00 +03:00
20
20
  default_executable:
21
21
  dependencies: []
22
22