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.

Move AS even_odd require to validation where it is used

#3221

This patch moves the require of 'active_support/core_ext/integer/even_odd' to where it is actually used -- in the validates_numericality_of validation. This allows other classes to include and use validates_numericality_of without first requiring 'active_support/core_ext/integer/even_odd'.

Reported by Sam Pohlenz · September 17th, 2009 @ 04:19 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 6th, 2010 @ 06:46 AM