Method: ActiveRecord::Base#destroy_with_tracking
- Defined in:
- lib/rails_ext.rb
#destroy_with_tracking(*args) ⇒ Object
16 17 18 19 20 |
# File 'lib/rails_ext.rb', line 16 def destroy_with_tracking(*args) result = destroy_without_tracking(*args) append_instance(ActiveRecord::Base.destroyed_objects) if result result end |