lib/kojac/concentric.rb in kojac-0.12.0 vs lib/kojac/concentric.rb in kojac-0.13.0
- old
+ new
@@ -124,9 +124,11 @@
fields.sort!
fields
end
# Query
+ # aFields specifies fields you require to act on
+ # This is no longer used by KojacBasePolicy because it does not observe its filters that operate on fields. It may still provide a faster check when there are no filters applied
def ring_can?(aRing,aAbility,aFields=nil)
if aFields
pf = permitted(aRing,aAbility)
if aFields.is_a? Array
return (aFields - pf).empty?