diff options
Diffstat (limited to 'actionpack/lib')
-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 5c853c3034..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, "Coult not render layout: #{e.message}" + raise e, "Could not render layout: #{e.message}" end if require_layout && action_has_layout? && !layout_name |