Skip to content

Commit

Permalink
Merge pull request #1258 from RadekMolenda/master
Browse files Browse the repository at this point in the history
Remove part of the README that might lead to incorrect results
  • Loading branch information
scarroll32 authored Nov 10, 2021
2 parents 4caf7c2 + cfdd10f commit c781f34
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ this example, with preloading each Person's Articles and pagination):
def index
@q = Person.ransack(params[:q])
@people = @q.result.includes(:articles).page(params[:page])

# or use `to_a.uniq` to remove duplicates (can also be done in the view):
@people = @q.result.includes(:articles).page(params[:page]).to_a.uniq
end
```

Expand Down

0 comments on commit c781f34

Please sign in to comment.