search for: validates_numericy

Displaying 1 result from an estimated 1 matches for "validates_numericy".

Did you mean: validates_numericay
2006 Jan 15
6
PROPOSAL: Validations as Mixin
...ts, even ones having nothing to do with ActiveRecord. Common examples are Contact Us forms, multi-step forms, web service paramater validations, etc. I took a look at the source for Validations, and it seems that it is very independent from ActiveRecord. I caught only three depenedencies: 1. validates_numericy --> depends on ActiveRecords'' before_type_case 2. The exceptions were from the ActiveRecord namespace 3. Including Validations hooked on methods like save It would seem to me that Validations would be best off as an independent mixin. All ActiveRecord would need to do is mix it, add...