Vote count:
0
I have the following validation in my model:
validates :price, :numericality => { :greater_than => 0 }, :unless => :free?
How can I only apply this validation to objects created after the June 6, 2014?
The object has a created_at
attribute that's formatted like so: 2014-06-19 17:44:27
asked 32 secs ago
Aucun commentaire:
Enregistrer un commentaire