diff options
| author | Robert | 2017-07-07 18:17:06 +0200 |
|---|---|---|
| committer | Robert | 2017-07-09 22:43:16 +0200 |
| commit | 09396d0502c71b0632616c18a0148dbabdba1b95 (patch) | |
| tree | a77fc8ca273d7300bffe24c629ceddd2364939e6 | |
| parent | 24977a51e49a3d88cf36d1fd71e2ddc51c4ec6e5 (diff) | |
| download | chouette-core-09396d0502c71b0632616c18a0148dbabdba1b95.tar.bz2 | |
Refs: #3478@1h; fixes a view error in references#show(format: js)
| -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 |
