From e8617c1e0a4e55560ed125e172b0430811037395 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 8 Aug 2014 13:15:54 -0300 Subject: [PATCH] Don't rescue from arbitrary exceptions --- app/helpers/application_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ac8ffa4..d41ab2a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -314,7 +314,11 @@ module ApplicationHelper def render_profile_actions klass name = klass.to_s.underscore - render "blocks/profile_info_actions/#{name}" rescue render_profile_actions klass.superclass + begin + render "blocks/profile_info_actions/#{name}" + rescue ActionView::MissingTemplate + render_profile_actions klass.superclass + end end def user -- libgit2 0.21.2