don't stop at cannot definition when checking class - closes #131

This commit is contained in:
Ryan Bates
2010-08-30 15:20:06 -07:00
parent 4fe44af45d
commit 5a353c1cba
2 changed files with 9 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ module CanCan
elsif @conditions.kind_of?(Hash) && subject.class != Class
matches_conditions_hash?(subject)
else
true
@base_behavior
end
end