diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2018-02-22 06:15:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 06:15:11 +0000 |
commit | a5e81342af6b71c7247ec3caf4e68d1baa4e465a (patch) | |
tree | 386b110313b30ab3adc8d9c5b6560e1122f5ba08 /actionview | |
parent | 651c2492f079cc2e37bf8e93a9fd23bde1e5349e (diff) | |
parent | 6f6fe69ea8d2072c49ab7d56b32f19ea27805962 (diff) | |
download | rails-a5e81342af6b71c7247ec3caf4e68d1baa4e465a.tar.gz rails-a5e81342af6b71c7247ec3caf4e68d1baa4e465a.tar.bz2 rails-a5e81342af6b71c7247ec3caf4e68d1baa4e465a.zip |
Merge pull request #32076 from utilum/use_dot
Call methods with .method_name not ::method_name
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/debug_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/debug_helper.rb b/actionview/lib/action_view/helpers/debug_helper.rb index 52dff1f750..88ceba414b 100644 --- a/actionview/lib/action_view/helpers/debug_helper.rb +++ b/actionview/lib/action_view/helpers/debug_helper.rb @@ -24,7 +24,7 @@ module ActionView # created_at: # </pre> def debug(object) - Marshal::dump(object) + Marshal.dump(object) object = ERB::Util.html_escape(object.to_yaml) content_tag(:pre, object, class: "debug_dump") rescue # errors from Marshal or YAML |