Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [22f339825329e2d4463a4130e9fa68baf9d27eb6] by Jeff Dean

Revision 22f339825329e2d4463a4130e9fa68baf9d27eb6, committed by Jeff Dean · August 10th, 2009 @ 06:47 AM

Introduce validates_with to encapsulate attribute validations in a class.

[#2630 state:committed]

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

5 changed files

  • A activemodel/CHANGELOG
  • A activemodel/lib/active_model/validations/with.rb
  • A activemodel/test/cases/validations/with_validation_test.rb
  • A activerecord/lib/active_record/validator.rb
  • M activerecord/lib/active_record.rb