diff options
author | Xavier Noria <fxn@hashref.com> | 2011-08-31 17:58:46 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-31 17:58:46 -0700 |
commit | 91fc86562acaff31d55f313a7f7f3e03d0166997 (patch) | |
tree | 4ff021d568639bb4172890911b6939442f670aff /activerecord | |
parent | e851e9e407c38e5026835471b7440ab7f2947490 (diff) | |
parent | de6660b5ec4aa8c0e2415f3483aa9346ef8c9223 (diff) | |
download | rails-91fc86562acaff31d55f313a7f7f3e03d0166997.tar.gz rails-91fc86562acaff31d55f313a7f7f3e03d0166997.tar.bz2 rails-91fc86562acaff31d55f313a7f7f3e03d0166997.zip |
Merge pull request #61 from gabebw/master
Improve examples by using .each instead of for...in
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 %> |