module ActiveRecord::Persistence
Public Instance Methods
save_without_update_list_member(options)
click to toggle source
We need to skip the after_update callback here. Otherwise, we'll trigger a loop of MailChimp updates.
# File lib/active_record_extensions.rb, line 4 def save_without_update_list_member(options) self.class.skip_callback(:update, :after, :update_list_member) self.save(options) self.class.set_callback(:update, :after, :update_list_member) end