mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
Merge pull request #1258 from RadekMolenda/master
Remove part of the README that might lead to incorrect results
This commit is contained in:
commit
c781f346c6
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue