Skip to content

Instantly share code, notes, and snippets.

@skyporter
Created December 3, 2018 09:15
Show Gist options
  • Save skyporter/41cb33decf86155afba89c53053fdff7 to your computer and use it in GitHub Desktop.
Save skyporter/41cb33decf86155afba89c53053fdff7 to your computer and use it in GitHub Desktop.
class User
def self.process
all.each(&:process)
rescue StandardError => ex
# ensure processing other users..
Appsignal.set_error(ex)
end
def process
# ...
raise Exception.new("one error")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment