acts_as_user 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63fc4ca22aeac454db213bb596ee2a0531249ba0
4
- data.tar.gz: 8a2a20f92523d8b8546929f306bf8b0b7645306a
3
+ metadata.gz: 4dd54b73d7bb9d87866db978fafcaaa535cb234e
4
+ data.tar.gz: fe9438289e8012cc56877f12b115b0cd3a42fab5
5
5
  SHA512:
6
- metadata.gz: ad78a6e034f8f245645c689567ee7c08d4295b1fde83cb552a484fa54125c84c8f6a4aa08dd2f4613648e2129d651b740d2bed57375a6108da4cd86d9341b178
7
- data.tar.gz: 248cacc6cfa179be740c08f681b6b0841b2bbcd980c2d6a631b453d1feba45602ae929bf061f95221abf651540fbbafe97c98d65dd8ae1cb297155e6a7ca91f7
6
+ metadata.gz: 7b90a135f61275dff488c372866798081d6363e30eb95eebe2428ff0f873517ddfdd08840034790f3bd74c496713db45537d033bf36c4a61978ae2b97dcb1e0f
7
+ data.tar.gz: d49c92c72e30afdd45f1a609426e2647e523cd68ccd35b0524e29eaafc5e115814d2ca30503400ec32e899dd65266c9dcafba2249612ba1c67d80bcd5e297919
@@ -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
- eager_autoload do
9
- autoload :UserDelegate
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"]
@@ -1,3 +1,3 @@
1
1
  module ActsAsUser
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_user
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abraham Kuri