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

Revision fa14d6d51ed89acde66b49e8d3a6423396c3d553, committed by José Valim · January 8th, 2010 @ 08:36 PM

Compile length validator options still at the class level, so whenever the validator is called, it just needs to check for :maximum, :minimum and :is values.
http://github.com/rails/rails/commit/fa14d6d51ed89acde66b49e8d3a642...

4 changed files

  • M activemodel/lib/active_model/validations/exclusion.rb
  • M activemodel/lib/active_model/validations/inclusion.rb
  • M activemodel/lib/active_model/validations/length.rb
  • M activemodel/test/cases/validations/length_validation_test.rb