Skip to content

Commit 91fc865

Browse files
committed
Merge pull request rails#61 from gabebw/master
Improve examples by using .each instead of for...in
2 parents e851e9e + de6660b commit 91fc865

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actionpack/lib/action_view/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module ActionView #:nodoc:
116116
# xml.language "en-us"
117117
# xml.ttl "40"
118118
#
119-
# for item in @recent_items
119+
# @recent_items.each do |item|
120120
# xml.item do
121121
# xml.title(item_title(item))
122122
# xml.description(item_description(item)) if item_description(item)

activerecord/lib/active_record/fixtures.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class FixturesFileNotFound < StandardError; end
126126
# 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
127127
# mix ERB in with your YAML fixtures to create a bunch of fixtures for load testing, like:
128128
#
129-
# <% for i in 1..1000 %>
129+
# <% (1..1000).each do |i| %>
130130
# fix_<%= i %>:
131131
# id: <%= i %>
132132
# name: guy_<%= 1 %>

0 commit comments

Comments
 (0)