-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
So, I have...
field :total, type: Float validates_numericality_of :total, :greater_than => 0, :allow_nil => true
When I pass a nil value, the validation is run and marks the object as invalid.