Merge pull request #564 from flop/master
False positives on multiple nested abilities definitions
This commit is contained in:
@@ -123,7 +123,7 @@ module CanCan
|
||||
end
|
||||
|
||||
def nested_subject_matches_conditions?(subject_hash)
|
||||
parent, child = subject_hash.shift
|
||||
parent, child = subject_hash.first
|
||||
matches_conditions_hash?(parent, @conditions[parent.class.name.downcase.to_sym] || {})
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user