Rescue exceptions DSL for plain Ruby objects with Rails
Likewise in Rails controllers we have a useful functionality to catch exceptions with rescue_from in order to change the default behavior, it’s too easy to obtain it for any other type of a Ruby object in Rails applications. Check out this post about the solution.
Post a comment