I agree, initially I had written a custom validator, but rails was intercepting and nilling out the value before it hit the validator. I had found something on SO, but it was ghetto, read_attribute_before_type_cast is exactly what I need.