From 49dcc4ff0c137089ff3420ce70ca64a00573884f Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Tue, 7 Jun 2011 21:45:14 -0300 Subject: Prefer 'each' over 'for in' syntax. --- activesupport/lib/active_support/core_ext/string/output_safety.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext/string') diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index 6df987eb14..aeb21ed8df 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -112,7 +112,7 @@ module ActiveSupport #:nodoc: to_str.to_yaml(*args) end - for unsafe_method in UNSAFE_STRING_METHODS + UNSAFE_STRING_METHODS.each do |unsafe_method| class_eval <<-EOT, __FILE__, __LINE__ def #{unsafe_method}(*args) super.to_str -- cgit v1.2.3