I have a custom validator dimensions_validator
in app/validators.
Works fine in the app in development. But when I bring up the rails console
and try to load that model, PngPic.count
, I get ArgumentError: Unknown validator: 'DimensionsValidator'
. What gives? How is the console different than the WEBrick server?
I've restarted the console a few times, no luck.