This project is archived and is in readonly mode.

Changeset [f1085f41287687835659fa23079080204fe32e96] 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...

Committed by José Valim

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>