From c57f5d58ea5ba60b0997017ab322481377c81c2c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 29 Sep 2010 10:39:17 -0700 Subject: no need to call e.class --- actionpack/lib/abstract_controller/layouts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/abstract_controller') diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb index e706dbd902..b68c7d9216 100644 --- a/actionpack/lib/abstract_controller/layouts.rb +++ b/actionpack/lib/abstract_controller/layouts.rb @@ -347,7 +347,7 @@ module AbstractController begin layout_name = _layout if action_has_layout? rescue NameError => e - raise e.class, "Could not render layout: #{e.message}" + raise e, "Could not render layout: #{e.message}" end if require_layout && action_has_layout? && !layout_name -- cgit v1.2.3