This project is archived and is in readonly mode.
update_attribute_with_validation_skipping removed from 2.2 RC
Reported by Niels Meersschaert | November 11th, 2008 @ 10:20 PM
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.
Comments and changes to this ticket
-
Michael Koziarski November 14th, 2008 @ 10:57 AM
- 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.
-
Repository November 14th, 2008 @ 11:48 AM
- State changed from new to resolved
(from [850290cc22b22db59ac564c49998acf34d374e6c]) Deprecate update_attribute_with_validation_skipping. [#1357 state:resolved] http://github.com/rails/rails/co...
-
Niels Meersschaert November 14th, 2008 @ 12:51 PM
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.
-
Michael Koziarski November 14th, 2008 @ 01:25 PM
update_attributes :field => value will do the validation.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Referenced by
- 1357 update_attribute_with_validation_skipping removed from 2.2 RC (from [850290cc22b22db59ac564c49998acf34d374e6c]) Depreca...