I'm currently trying to validate fields without having an ActiveRecord::Base
inheritance.
My model stores the data on a cache server so I do not need ActiveRecord.
Anyway, I would like to validate the fields of the model like I would if I was using ActiveRecord (e.g validates_numericality_of :quantity, :greater_than => 0
) ?
How can I do that?