Module: Changebase::Inline::HasMany

Defined in:
lib/changebase/inline/active_record.rb

Instance Method Summary collapse

Instance Method Details

#delete_or_nullify_all_records(method) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/changebase/inline/active_record.rb', line 53

def delete_or_nullify_all_records(method)
  x = super
  if method == :delete_all
    target.each { |record| record.changebase_track(:delete) }
  end
  x
end