aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/automobile.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix some validators when used on model instanceEric Hutzelman2014-02-261-1/+2
| | | | | | | | Now that Validator #setup is called from the initializer, we need a reference to the model's class to be passed in to allow the validators to continue functioning when used at the instance level. Closes #14134.
* Convert ActiveModel to 1.9 hash syntax.Patrick Robertson2013-05-011-2/+2
| | | | | I also attempted to fix other styleguide violations such as { a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ).
* validation macros can now be used within an instanceJosh Kalderimis2010-05-131-0/+12