raise a NotImplemented exception if it's an unrecognized MetaWhere condition

This commit is contained in:
Ryan Bates 2011-03-08 11:06:46 -08:00
parent 07088a0cdc
commit c53ed1e497

View File

@ -14,6 +14,7 @@ module CanCan
case name.method
when "lt" then subject_value < value
when "gt" then subject_value > value
else raise NotImplemented, "The #{name.method} MetaWhere condition is not supported."
end
end