Skip to content

Commit 63bbbae

Browse files
committed
Merge branch 'master' of github.com:anykeyh/clear
2 parents a62cd84 + 9232caa commit 63bbbae

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)