Module: Flatter::Extensions::ActiveRecord::CallbacksControl

Defined in:
lib/flatter/extensions/active_record.rb

Instance Method Summary collapse

Instance Method Details

#save_with_callbacks(callbacks) ⇒ Object



7
8
9
10
11
12
# File 'lib/flatter/extensions/active_record.rb', line 7

def save_with_callbacks(callbacks)
  @_saving_callbacks = callbacks
  create_or_update
ensure
  remove_instance_variable('@_saving_callbacks')
end