diff options
author | Shimpei Makimoto <makimoto@tsuyabu.in> | 2013-10-31 00:48:09 +0900 |
---|---|---|
committer | Shimpei Makimoto <makimoto@tsuyabu.in> | 2013-11-16 04:41:28 +0900 |
commit | 1e848906c594d159da376dc1f41c7869c1f2249e (patch) | |
tree | 64df8725a2740e291468dea6ecb7c0943b56b520 /actionview/lib/action_view/template | |
parent | 314e2cc05b6cad93b6e8a3414b2c0106174239be (diff) | |
download | rails-1e848906c594d159da376dc1f41c7869c1f2249e.tar.gz rails-1e848906c594d159da376dc1f41c7869c1f2249e.tar.bz2 rails-1e848906c594d159da376dc1f41c7869c1f2249e.zip |
Use `set_backtrace` instead of `@backtrace` in ActionView error
Diffstat (limited to 'actionview/lib/action_view/template')
-rw-r--r-- | actionview/lib/action_view/template/error.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template/error.rb b/actionview/lib/action_view/template/error.rb index a89d51221e..7b4b5e13e0 100644 --- a/actionview/lib/action_view/template/error.rb +++ b/actionview/lib/action_view/template/error.rb @@ -56,13 +56,13 @@ module ActionView class Error < ActionViewError #:nodoc: SOURCE_CODE_RADIUS = 3 - attr_reader :original_exception, :backtrace + attr_reader :original_exception def initialize(template, original_exception) super(original_exception.message) @template, @original_exception = template, original_exception @sub_templates = nil - @backtrace = original_exception.backtrace + set_backtrace(original_exception.backtrace) end def file_name |