Skip to content

Instantly share code, notes, and snippets.

@JamesPaden
Last active March 5, 2019 17:11
Show Gist options
  • Save JamesPaden/8e6d58c7419d91d6ced1d67ec668b9cb to your computer and use it in GitHub Desktop.
Save JamesPaden/8e6d58c7419d91d6ced1d67ec668b9cb to your computer and use it in GitHub Desktop.
def write_active_migrator_destination_model
begin
write_active_migrator_destination_model!
rescue Exception => e
ActiveMigrator.config.exception_handler.call(e, active_migrator_source_class: active_migrator_source_klass.name, active_migrator_source_id: id)
end
true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment