raise a NotImplemented exception if it's an unrecognized MetaWhere condition
This commit is contained in:
parent
07088a0cdc
commit
c53ed1e497
|
@ -14,6 +14,7 @@ module CanCan
|
||||||
case name.method
|
case name.method
|
||||||
when "lt" then subject_value < value
|
when "lt" then subject_value < value
|
||||||
when "gt" then subject_value > value
|
when "gt" then subject_value > value
|
||||||
|
else raise NotImplemented, "The #{name.method} MetaWhere condition is not supported."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user