Skip to content

Commit 9232caa

Browse files
authored
Merge pull request #136 from nik736/patch-1
changed hash to usr
2 parents 38e13f0 + 6407f7a commit 9232caa

File tree

1 file changed

+1
-1
lines changed
  • manual/querying/the-collection-object/filter-the-query-1

1 file changed

+1
-1
lines changed

manual/querying/the-collection-object/filter-the-query-1/ordering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Ordering of the collection can be made by using `order_by` method, while Group by is done via `group_by` :
44

55
```ruby
6-
User.query.order_by(last_name: "ASC", first_name: "ASC").each do |hash|
6+
User.query.order_by(last_name: "ASC", first_name: "ASC").each do |usr|
77
puts "#{usr.first_name} #{usr.last_name}"
88
end
99
```

0 commit comments

Comments
 (0)