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.

ActiveRecord::Validator should be ActiveModel::Validator

#3077

Given the push to keep everything modular and the fact that validations have been mostly extracted from active record, having this validator base class in the active record namespace seems like a mistake. It has no dependencies on active record that I can tell but validate_with from ActiveModel relies on classes conforming to this interface.

Consequently, this class should be moved into ActiveModel so that programs that don't require ActiveRecord can benefit from the interface defined by the base class.

Reported by darkliquid · August 19th, 2009 @ 04:25 PM

State: duplicate
Milestone: none
Assigned to: José Valim José Valim
Importance: none

Activity

  1. José Valim
    José Valim
    • Assigned user set to José Valim

    September 4th, 2009 @ 01:24 PM

  2. josh
    josh
    • State changed from new to duplicate

    Similar to #3058

    October 7th, 2009 @ 05:24 AM