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.

update_attribute_with_validation_skipping removed from 2.2 RC

#1357

There was a method in ActiveRecord called update_attribute_with_validation_skipping. It was defined in activerecord/lib/active_record/validations.rb. The documentation is at http://api.rubyonrails.org/class...

Under 2.2.0 RC, any ActiveRecord descendent that tries to use that gets a NoMethodError: undefined method update_attribute_with_validation_skipping' exception.

Reported by Niels Meersschaert · November 11th, 2008 @ 10:20 PM

State: resolved
Milestone: none
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Michael Koziarski
    Michael Koziarski
    • Assigned user set to Pratik
    • Milestone cleared.

    Pratik nuked it, but you should just be using update_attribute, it skips the validations anyway.

    We'll add it back in with deprecation warnings.

    November 14th, 2008 @ 10:57 AM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [850290cc22b22db59ac564c49998acf34d374e6c]) Deprecate update_attribute_with_validation_skipping. [#1357 update_attribute_with_validation_skipping removed from 2.2 RC state:resolved] http://github.com/rails/rails/co...

    November 14th, 2008 @ 11:48 AM

  3. Niels Meersschaert
    Niels Meersschaert

    Thanks for letting me know. Is there an equivalent to update_attribute which does the validation? I liked being able to update a single attribute & save with validation in one line, or so I thought I was doing that.

    November 14th, 2008 @ 12:51 PM

  4. Michael Koziarski
    Michael Koziarski

    update_attributes :field => value will do the validation.

    November 14th, 2008 @ 01:25 PM