aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/Rakefile
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-01-29 11:30:37 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2012-01-29 11:30:37 -0800
commitdfa0c36204beb1b519962a6a49a1ebbed91015dd (patch)
tree2794ed0b8dd33458d2509ddd974519df9f561c8b /activeresource/Rakefile
parent677e06c20f6df6c44f44af9ba95390558e67a9bc (diff)
parentbf928bc7329640969917eb680da4de959b7156b7 (diff)
downloadrails-dfa0c36204beb1b519962a6a49a1ebbed91015dd.tar.gz
rails-dfa0c36204beb1b519962a6a49a1ebbed91015dd.tar.bz2
rails-dfa0c36204beb1b519962a6a49a1ebbed91015dd.zip
Merge pull request #4744 from ndbroadbent/replace_for_loops_with_enumerables
Replaced all 'for' loops with Enumerable#each
Diffstat (limited to 'activeresource/Rakefile')
-rwxr-xr-xactiveresource/Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/Rakefile b/activeresource/Rakefile
index b1c18ff189..042d9fb0c7 100755
--- a/activeresource/Rakefile
+++ b/activeresource/Rakefile
@@ -33,7 +33,7 @@ end
task :lines do
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0
- for file_name in FileList["lib/active_resource/**/*.rb"]
+ FileList["lib/active_resource/**/*.rb"].each do |file_name|
next if file_name =~ /vendor/
f = File.open(file_name)