dm_core 4.2.2 → 4.2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ability.rb +1 -1
- data/lib/dm_core/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: e14844188fa4b0321ad7bef84d648c08c39ad8a0
|
4
|
+
data.tar.gz: fc80ba672a9fe0e28a708ab10a7755c59d6fd8a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dac67d70542494df26a51d225ca7bc6c8398eb0b7c45c560f266ba1fd73919dcb4d2e52b4e689757a5fb6a132a981e371aaf14505562fc3fdab61ae18880dca
|
7
|
+
data.tar.gz: 81907aa311253263e4e35579cbfd8bd8ea3c993d50533ac9958cf0c74e1a57397ed6915140cdafb6c335afc876238a4c726933919f98d4b5aba41616daf79941
|
data/app/models/ability.rb
CHANGED
@@ -8,7 +8,7 @@ class Ability
|
|
8
8
|
|
9
9
|
#------------------------------------------------------------------------------
|
10
10
|
def initialize(user)
|
11
|
-
@user_roles = user.roles.all
|
11
|
+
@user_roles = user.roles.all if user
|
12
12
|
@@registered_abilities.each {|method| self.send method, user}
|
13
13
|
|
14
14
|
dm_core_abilities(user)
|
data/lib/dm_core/version.rb
CHANGED