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 [f1085f41287687835659fa23079080204fe32e96] by José Valim

Revision f1085f41287687835659fa23079080204fe32e96, committed by José Valim · December 22nd, 2009 @ 11:36 PM

Move validations in ActiveModel to validators, however all validatity checks are still in the class method.
http://github.com/rails/rails/commit/f1085f41287687835659fa23079080...

12 changed files

  • M activemodel/lib/active_model.rb
  • M activemodel/lib/active_model/validations/acceptance.rb
  • M activemodel/lib/active_model/validations/confirmation.rb
  • M activemodel/lib/active_model/validations/exclusion.rb
  • M activemodel/lib/active_model/validations/format.rb
  • M activemodel/lib/active_model/validations/inclusion.rb
  • M activemodel/lib/active_model/validations/length.rb
  • M activemodel/lib/active_model/validations/numericality.rb
  • M activemodel/lib/active_model/validations/presence.rb
  • M activemodel/lib/active_model/validations/with.rb
  • M activemodel/lib/active_model/validator.rb
  • M activemodel/test/cases/validations/with_validation_test.rb