aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
authorLuc Donnet2017-07-10 11:35:06 +0200
committerLuc Donnet2017-07-10 11:35:06 +0200
commit272359b13aba516c8fa752d35adaac4981e7c5a6 (patch)
tree46dc03ef21a32196ffa56cd51c7b6fc95b7b6900 /app/controllers/referentials_controller.rb
parentdecc41c797c58842faaeb69220a6ac8d60006536 (diff)
parent7c7451dc80b6f9b6092b3262fe524a8252309b1a (diff)
downloadchouette-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.rb3
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