Catch all errors in script/runner?

I have a rails app that is run exclusively as a script/runner process,
and I’d like to be able to catch all errors that occur in these
processes in a standardized way.

With a normal rails app, one can override rescue_action_in_public in
ApplicationController, but I’m only using models. Is there something
similar I can do? Any help is much appreciated.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs