Add check for Enumerable as condition value
This commit is contained in:
@@ -111,7 +111,7 @@ module CanCan
|
||||
else
|
||||
!attribute.nil? && matches_conditions_hash?(attribute, value)
|
||||
end
|
||||
elsif value.kind_of?(Array) || value.kind_of?(Range)
|
||||
elsif value.kind_of?(Enumerable)
|
||||
value.include? attribute
|
||||
else
|
||||
attribute == value
|
||||
|
||||
Reference in New Issue
Block a user