diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2019-03-29 20:42:35 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2019-03-29 20:42:35 +0530 |
commit | 12701d5a46e378f216398d72c91c40f5da1bccd7 (patch) | |
tree | 34e1810024dab32b4663e886ec07f2ae2a77e896 /actionview/lib | |
parent | da2c92377c7f36469e56dc25a4ac0604157ac778 (diff) | |
download | rails-12701d5a46e378f216398d72c91c40f5da1bccd7.tar.gz rails-12701d5a46e378f216398d72c91c40f5da1bccd7.tar.bz2 rails-12701d5a46e378f216398d72c91c40f5da1bccd7.zip |
Fix annotated typo
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/renderer/streaming_template_renderer.rb | 2 | ||||
-rw-r--r-- | actionview/lib/action_view/template/error.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionview/lib/action_view/renderer/streaming_template_renderer.rb b/actionview/lib/action_view/renderer/streaming_template_renderer.rb index 279ef3c680..19fa399e2c 100644 --- a/actionview/lib/action_view/renderer/streaming_template_renderer.rb +++ b/actionview/lib/action_view/renderer/streaming_template_renderer.rb @@ -34,7 +34,7 @@ module ActionView return unless logger message = +"\n#{exception.class} (#{exception.message}):\n" - message << exception.annoted_source_code.to_s if exception.respond_to?(:annoted_source_code) + message << exception.annotated_source_code.to_s if exception.respond_to?(:annotated_source_code) message << " " << exception.backtrace.join("\n ") logger.fatal("#{message}\n\n") end diff --git a/actionview/lib/action_view/template/error.rb b/actionview/lib/action_view/template/error.rb index ff01e4cd83..d0ea03e228 100644 --- a/actionview/lib/action_view/template/error.rb +++ b/actionview/lib/action_view/template/error.rb @@ -109,7 +109,7 @@ module ActionView end end - def annoted_source_code + def annotated_source_code source_extract(4) end @@ -151,7 +151,7 @@ module ActionView MESSAGE end - def annoted_source_code + def annotated_source_code @offending_code_string.split("\n").map.with_index(1) { |line, index| indentation = " " * 4 "#{index}:#{indentation}#{line}" |