Class: Synchronisable::Import
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Synchronisable::Import
- Defined in:
- lib/synchronisable/models/import.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.find_by_remote_id(id) ⇒ Object
13 14 15 |
# File 'lib/synchronisable/models/import.rb', line 13 def self.find_by_remote_id(id) with_remote_id(id).first end |
Instance Method Details
#destroy_with_synchronisable ⇒ Object
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 |