acts_as_user 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_user.rb +3 -14
- data/lib/acts_as_user/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dd54b73d7bb9d87866db978fafcaaa535cb234e
|
4
|
+
data.tar.gz: fe9438289e8012cc56877f12b115b0cd3a42fab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b90a135f61275dff488c372866798081d6363e30eb95eebe2428ff0f873517ddfdd08840034790f3bd74c496713db45537d033bf36c4a61978ae2b97dcb1e0f
|
7
|
+
data.tar.gz: d49c92c72e30afdd45f1a609426e2647e523cd68ccd35b0524e29eaafc5e115814d2ca30503400ec32e899dd65266c9dcafba2249612ba1c67d80bcd5e297919
|
data/lib/acts_as_user.rb
CHANGED
@@ -1,24 +1,13 @@
|
|
1
1
|
require "acts_as_user/version"
|
2
2
|
require 'orm_adapter'
|
3
|
+
require 'active_support/dependencies'
|
3
4
|
|
4
5
|
module ActsAsUser
|
5
6
|
extend ActiveSupport::Autoload
|
6
7
|
|
7
8
|
#Eager loads the modules
|
8
|
-
|
9
|
-
|
10
|
-
autoload :IsUser
|
11
|
-
end
|
12
|
-
|
13
|
-
# ActiveSupport::Autoload automatically defines
|
14
|
-
# an eager_load! method. In this case, we are
|
15
|
-
# extending the method to also eager load the
|
16
|
-
# ActsAsUser modules.
|
17
|
-
def self.eager_load!
|
18
|
-
super
|
19
|
-
ActsAsUser::UserDelegate.eager_load!
|
20
|
-
ActsAsUser::IsUser.eager_load!
|
21
|
-
end
|
9
|
+
autoload :UserDelegate, 'acts_as_user/user_delegate'
|
10
|
+
autoload :IsUser, 'acts_as_user/is_user'
|
22
11
|
|
23
12
|
#We ignore some attribues that might cause a collision between models
|
24
13
|
@@default_ignored_attributes = ["created_at", "updated_at", "id", "userable_type", "userable_id"]
|
data/lib/acts_as_user/version.rb
CHANGED