Module: ActiveRecord::Persistence
- Defined in:
- lib/active_record_extensions.rb
Instance Method Summary collapse
-
#save_without_update_list_member(options) ⇒ Object
We need to skip the after_update callback here.
Instance Method Details
#save_without_update_list_member(options) ⇒ Object
We need to skip the after_update callback here. Otherwise, we’ll trigger a loop of MailChimp updates.
4 5 6 7 8 |
# File 'lib/active_record_extensions.rb', line 4 def save_without_update_list_member() self.class.skip_callback(:update, :after, :update_list_member) self.save() self.class.set_callback(:update, :after, :update_list_member) end |