class CanCan::BlockAndConditionsError

Raised when a rule is created with both a block and a hash of conditions