I’m doing some wonky stuff and I am at a point where I need to, in an
after_save callback, modify some data and update an hstore column, but
not
trigger the save callback again.
What methods are available to me?
Thank you!
I’m doing some wonky stuff and I am at a point where I need to, in an
after_save callback, modify some data and update an hstore column, but
not
trigger the save callback again.
What methods are available to me?
Thank you!
On Friday, January 30, 2015 at 12:54:15 AM UTC+1, JDog wrote:
I’m doing some wonky stuff and I am at a point where I need to, in an
after_save callback, modify some data and update an hstore column, but not trigger
the save callback again.What methods are available to me?
How about update_column(s)
http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-update_columns
?
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs