Skip to content

Instantly share code, notes, and snippets.

@Linuus

Linuus/foo.rb Secret

Created May 23, 2019 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Linuus/f13248caab72718cc7b6818cdfde873b to your computer and use it in GitHub Desktop.
Save Linuus/f13248caab72718cc7b6818cdfde873b to your computer and use it in GitHub Desktop.
Test code
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