cmouse
Not a member
cmouse's latest activity
Tuesday, March 29 2011
6645
Rails 3 rescue_from cannot handle custom exceptions
was updated
in Ruby on Rails
-
cmouse commented at 7:18 PMOh yes, forgot:
rescue_from StorageExceptions::PermissionDeniedException, :with => :redirect_403
private def redirect_403
if session[:user_id].nil? redirect_... -
cmouse created the ticket at 7:14 PMin def_rescue_with_handler (lib/active_support/rescuable.rb:77) the exception is already NameError instead of the custom exception. This makes it impossible to ...