diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 10:39:17 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 10:39:17 -0700 |
commit | c57f5d58ea5ba60b0997017ab322481377c81c2c (patch) | |
tree | 9c6b0c7da1acc00fb3b5e96d598342e42bb26add /actionpack/lib/abstract_controller | |
parent | b9215273a9440f92859b84cca86dfd03ef2de88f (diff) | |
download | rails-c57f5d58ea5ba60b0997017ab322481377c81c2c.tar.gz rails-c57f5d58ea5ba60b0997017ab322481377c81c2c.tar.bz2 rails-c57f5d58ea5ba60b0997017ab322481377c81c2c.zip |
no need to call e.class
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/layouts.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |