Update HStore column's values without triggering after_save callbacks

37 views
Skip to first unread message

JDog

unread,
Jan 29, 2015, 6:54:15 PM1/29/15
to rubyonra...@googlegroups.com
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!

Frederick Cheung

unread,
Jan 30, 2015, 11:08:38 AM1/30/15
to rubyonra...@googlegroups.com
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

> Thank you!
Reply all
Reply to author
Forward
0 new messages