mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Prefer 'each' over 'for in' syntax.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user