From 6f6fe69ea8d2072c49ab7d56b32f19ea27805962 Mon Sep 17 00:00:00 2001 From: utilum Date: Thu, 22 Feb 2018 00:40:21 +0100 Subject: We should call methods with `.method_name` not `::method_name`. Found several instances. Follow up on 63d530c5e68a8cf53603744789f53ccbc7ac1a0e --- actionview/lib/action_view/helpers/debug_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib') 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: # 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 -- cgit v1.2.3