diff options
| author | jpl | 2017-02-08 17:54:48 +0100 |
|---|---|---|
| committer | jpl | 2017-02-08 17:54:48 +0100 |
| commit | 2cfafe1c03e9ca1b18e16333d54b91d6e05922a3 (patch) | |
| tree | 12e2edc578f95b5a29f17151631bff1595881668 /app/controllers | |
| parent | 4d29cd1e8dddce08731b7962491d864fdfe0f8f6 (diff) | |
| download | chouette-core-2cfafe1c03e9ca1b18e16333d54b91d6e05922a3.tar.bz2 | |
Refs #2482: updating referentials#show with new layout
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 5ec4fc2cf..83a56b6e0 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -32,8 +32,8 @@ class ReferentialsController < BreadcrumbController } format.html { build_breadcrumb :show} end - @reflines = lines_collection.paginate(page: params[:page], per_page: 10) - # resource.lines.paginate(page: params[:page], per_page: 10) + @q = lines_collection.ransack(params[:q]) + @reflines = @q.result(distinct: true).paginate(page: params[:page], per_page: 10) end def edit |
