-
-
Save Linuus/f13248caab72718cc7b6818cdfde873b to your computer and use it in GitHub Desktop.
Test code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def perform(things:) | |
things.each do |thing| | |
thing = Thing.new( | |
foo_id: thing[:foo_id], | |
bar_id: thing[:bar_id] | |
) | |
thing.save if thing.sync_with_remote | |
# thing.sync_with_remote(api_client: MyApiClient) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment