Permalink
Browse files

Merge pull request #1535 from smartinez87/each

Prefer 'each' over 'for in' syntax.
  • Loading branch information...
2 parents 1d3618a + 49dcc4f commit fcccfd7b6d4c89bf2904c87da4833b8527d4b8e8 @josevalim josevalim committed Jun 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -112,7 +112,7 @@ def to_yaml(*args)
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

0 comments on commit fcccfd7

Please sign in to comment.