mongoid_ability 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e46cdf87be76c61f854d456116226b64bd95834
|
4
|
+
data.tar.gz: ae4c2ebfbe8da92a62a89af5be4428d2679a678b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86b7fec05cee106cbdbcef83f7e8f9b5a235ccaded227dd019860a18bf072f99ebe783ec0cf3f146bc78e1dd1f91c4b6a74ae54072d22b55daceeaaf4af34c31
|
7
|
+
data.tar.gz: 837eea204af7eaab2077d5d13a6c1b204f42a3db60ddf1730e81496e522f823c57b861f79fcefc138d43a425c5e18d434c64e3bb709057d125f9d128551e17b6
|
@@ -31,7 +31,7 @@ module MongoidAbility
|
|
31
31
|
# ---------------------------------------------------------------------
|
32
32
|
|
33
33
|
def values
|
34
|
-
@values ||=
|
34
|
+
@values ||= base_class.values_for_accessible_query(ability, action, options)
|
35
35
|
end
|
36
36
|
|
37
37
|
# ---------------------------------------------------------------------
|
@@ -60,6 +60,10 @@ module MongoidAbility
|
|
60
60
|
def accessible_by(ability, action = :read, options = {})
|
61
61
|
AccessibleQueryBuilder.call(self, ability, action, options)
|
62
62
|
end
|
63
|
+
|
64
|
+
def values_for_accessible_query(ability, action = :read, options = {})
|
65
|
+
ValuesForAccessibleQuery.call(self, ability, action, options)
|
66
|
+
end
|
63
67
|
end
|
64
68
|
end
|
65
69
|
end
|