aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-18 10:52:37 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-18 10:52:37 -0800
commit54de7048a56840d853bb14333cefeb0a3a961133 (patch)
treef134aa328d647bb9f4753e5a13c6625665e672d4 /actionpack/lib/action_view/template
parente6881217ed8d7a20f70bb482a43512978fc4fc3b (diff)
parent403b06e98ee88b96b6fbd8692f072fdfa7857639 (diff)
downloadrails-54de7048a56840d853bb14333cefeb0a3a961133.tar.gz
rails-54de7048a56840d853bb14333cefeb0a3a961133.tar.bz2
rails-54de7048a56840d853bb14333cefeb0a3a961133.zip
Merge branch 'template_error' into merge
* template_error: Ensure original exception message is present in both Template::Error#message and Template::Error#inspect. ActiveSupport::Deprecation.silence no longer needed.
Diffstat (limited to 'actionpack/lib/action_view/template')
-rw-r--r--actionpack/lib/action_view/template/error.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/template/error.rb b/actionpack/lib/action_view/template/error.rb
index d7d98e1dd5..e246646963 100644
--- a/actionpack/lib/action_view/template/error.rb
+++ b/actionpack/lib/action_view/template/error.rb
@@ -56,6 +56,7 @@ module ActionView
attr_reader :original_exception, :backtrace
def initialize(template, assigns, original_exception)
+ super(original_exception.message)
@template, @assigns, @original_exception = template, assigns.dup, original_exception
@sub_templates = nil
@backtrace = original_exception.backtrace
@@ -65,10 +66,6 @@ module ActionView
@template.identifier
end
- def message
- ActiveSupport::Deprecation.silence { original_exception.message }
- end
-
def sub_template_message
if @sub_templates
"Trace of template inclusion: " +