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

Revision 47a5fd4c4ba447c997c0a029adfa80d8b790b25a, committed by José Valim · January 7th, 2010 @ 06:23 PM

Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in validates.
http://github.com/rails/rails/commit/47a5fd4c4ba447c997c0a029adfa80...

4 changed files

  • M activemodel/lib/active_model/validations.rb
  • M activemodel/lib/active_model/validations/validates.rb
  • M activemodel/test/cases/validations/validates_test.rb
  • M activemodel/test/models/person.rb