diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-06-07 21:45:14 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-06-07 21:45:14 -0300 |
commit | 49dcc4ff0c137089ff3420ce70ca64a00573884f (patch) | |
tree | be8cd08646343e16afd09854c9dbf4f1ed092cd2 /activesupport/lib | |
parent | 1300c034775a5d52ad9141fdf5bbdbb9159df96a (diff) | |
download | rails-49dcc4ff0c137089ff3420ce70ca64a00573884f.tar.gz rails-49dcc4ff0c137089ff3420ce70ca64a00573884f.tar.bz2 rails-49dcc4ff0c137089ff3420ce70ca64a00573884f.zip |
Prefer 'each' over 'for in' syntax.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |