diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-03-29 16:35:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-29 16:35:49 +0100 |
commit | 839b8d42cae1c900aa5029ddd0399415cf1b32da (patch) | |
tree | 34e1810024dab32b4663e886ec07f2ae2a77e896 /actionpack/lib | |
parent | da2c92377c7f36469e56dc25a4ac0604157ac778 (diff) | |
parent | 12701d5a46e378f216398d72c91c40f5da1bccd7 (diff) | |
download | rails-839b8d42cae1c900aa5029ddd0399415cf1b32da.tar.gz rails-839b8d42cae1c900aa5029ddd0399415cf1b32da.tar.bz2 rails-839b8d42cae1c900aa5029ddd0399415cf1b32da.zip |
Merge pull request #35788 from prathamesh-sonpatki/fix-annotate-typo
Fix annotated typo
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/live.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/live.rb b/actionpack/lib/action_controller/metal/live.rb index eb43ff9c63..dd69930e25 100644 --- a/actionpack/lib/action_controller/metal/live.rb +++ b/actionpack/lib/action_controller/metal/live.rb @@ -305,7 +305,7 @@ module ActionController logger.fatal do 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 ") "#{message}\n\n" end diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index bb49bc4dda..59113e13f4 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -146,7 +146,7 @@ module ActionDispatch message = [] message << " " message << "#{exception.class} (#{exception.message}):" - message.concat(exception.annoted_source_code) if exception.respond_to?(:annoted_source_code) + message.concat(exception.annotated_source_code) if exception.respond_to?(:annotated_source_code) message << " " message.concat(trace) |