From de6660b5ec4aa8c0e2415f3483aa9346ef8c9223 Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Wed, 31 Aug 2011 20:52:35 -0400 Subject: Improve examples: use each instead of for...in --- activerecord/lib/active_record/fixtures.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 3f36dcde14..2674430116 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -126,7 +126,7 @@ class FixturesFileNotFound < StandardError; end # Some times you don't care about the content of the fixtures as much as you care about the volume. In these cases, you can # mix ERB in with your YAML fixtures to create a bunch of fixtures for load testing, like: # -# <% for i in 1..1000 %> +# <% (1..1000).each do |i| %> # fix_<%= i %>: # id: <%= i %> # name: guy_<%= 1 %> -- cgit v1.2.3