Rails: update_attribut wihout validation - like object.save(false)
Posted
by Sam
on Stack Overflow
See other posts from Stack Overflow
or by Sam
Published on 2010-03-14T14:23:37Z
Indexed on
2010/03/14
14:25 UTC
Read the original article
Hit count: 85
I trying to update a model on a callback but the validation is causing some havic and I'm controller the material getting saved so I'm looking for way to do update attributes without a validation and I would like to keep it on the update method not on validations for example :conditions =>
Something like this?
easy_address.update_attributes(some_attributes)(false)
© Stack Overflow or respective owner