diff options
| author | Luc Donnet | 2017-07-10 11:35:06 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-07-10 11:35:06 +0200 |
| commit | 272359b13aba516c8fa752d35adaac4981e7c5a6 (patch) | |
| tree | 46dc03ef21a32196ffa56cd51c7b6fc95b7b6900 /app/controllers/referentials_controller.rb | |
| parent | decc41c797c58842faaeb69220a6ac8d60006536 (diff) | |
| parent | 7c7451dc80b6f9b6092b3262fe524a8252309b1a (diff) | |
| download | chouette-core-272359b13aba516c8fa752d35adaac4981e7c5a6.tar.bz2 | |
Merge branch 'master' of github.com:AF83/stif-boiv into staging
Diffstat (limited to 'app/controllers/referentials_controller.rb')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 31b953ace..9505a47f3 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -26,6 +26,7 @@ class ReferentialsController < BreadcrumbController resource.switch show! do |format| @referential = @referential.decorate + @reflines = lines_collection.paginate(page: params[:page], per_page: 10) format.json { render :json => { :lines_count => resource.lines.count, @@ -36,8 +37,6 @@ class ReferentialsController < BreadcrumbController } format.html { build_breadcrumb :show} end - - @reflines = lines_collection.paginate(page: params[:page], per_page: 10) end def edit |
