Class: Synchronisable::Import

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/synchronisable/models/import.rb

Instance Method Summary collapse

Instance Method Details

#destroy_with_synchronisableObject


17
18
19
20
21
22
# File 'lib/synchronisable/models/import.rb', line 17

def destroy_with_synchronisable
  ActiveRecord::Base.transaction do
    synchronisable.try :destroy
    destroy
  end
end