search for: validates_numericay

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

2006 Jan 15
6
PROPOSAL: Validations as Mixin
...--> 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 validates_numericay (1), catch the exceptions and rethrow them as ActiveRecord exceptions (2), and hook save type methods (3). What does everyone say? Would this be a good change? Is there an important reason for *not* doing this? -- Posted via http://www.ruby-forum.com/.