aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorutilum <oz@utilum.com>2018-02-22 00:40:21 +0100
committerutilum <oz@utilum.com>2018-02-22 00:54:40 +0100
commit6f6fe69ea8d2072c49ab7d56b32f19ea27805962 (patch)
treebdd0e484b93d216b590c435383075d9876eb5d64 /actionview/lib
parent63d530c5e68a8cf53603744789f53ccbc7ac1a0e (diff)
downloadrails-6f6fe69ea8d2072c49ab7d56b32f19ea27805962.tar.gz
rails-6f6fe69ea8d2072c49ab7d56b32f19ea27805962.tar.bz2
rails-6f6fe69ea8d2072c49ab7d56b32f19ea27805962.zip
We should call methods with `.method_name` not `::method_name`.
Found several instances. Follow up on 63d530c5e68a8cf53603744789f53ccbc7ac1a0e
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/helpers/debug_helper.rb2
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