apotomo icon indicating copy to clipboard operation
apotomo copied to clipboard

rescue_from doesn't work

Open docwhat opened this issue 12 years ago • 0 comments

rescue_from doesn't work in a widget.

You can add include ActionController::Rescue to the ApotomoWidget subclass to allow you to call rescue_from but if there is an exception, then it renders as "true" regardless of what the rescue_from handler actually should do.

This would be really cool because it would allow widgets to fail without taking the whole application down. Such as if you had a news widget or something non-vital like that.

docwhat avatar Oct 03 '11 16:10 docwhat