fixing issue when using accessible_by with nil can conditions - closes #66

This commit is contained in:
John Allison
2010-05-20 17:06:10 -07:00
committed by Ryan Bates
parent 605063b974
commit 7543eedd6a
3 changed files with 10 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ module CanCan
@base_behavior = base_behavior
@actions = [action].flatten
@subjects = [subject].flatten
@conditions = conditions
@conditions = conditions || {}
@block = block
end