aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referential_lines_controller.rb
diff options
context:
space:
mode:
authorsoykje2017-07-12 13:45:23 +0200
committerGitHub2017-07-12 13:45:23 +0200
commit5a55f529aad6b5edc805d774e5cca1e1ff3f66da (patch)
treec76eb6abdc2482560599bee1b52d8a9d4625733e /app/controllers/referential_lines_controller.rb
parentc120db456568dfcc6bb4f0653fc9d9ffa3f1a80a (diff)
parent7ea4ab54b53e9d14bf4562df24ed341fbe297f9e (diff)
downloadchouette-core-5a55f529aad6b5edc805d774e5cca1e1ff3f66da.tar.bz2
Merge pull request #30 from af83/3479-migrate-all-remaining-table-builder-helper-calls-to-new-version
3479 migrate all remaining table builder helper calls to new version
Diffstat (limited to 'app/controllers/referential_lines_controller.rb')
-rw-r--r--app/controllers/referential_lines_controller.rb20
1 files changed, 8 insertions, 12 deletions
diff --git a/app/controllers/referential_lines_controller.rb b/app/controllers/referential_lines_controller.rb
index 4b4a822b4..1da64991d 100644
--- a/app/controllers/referential_lines_controller.rb
+++ b/app/controllers/referential_lines_controller.rb
@@ -10,18 +10,6 @@ class ReferentialLinesController < ChouetteController
belongs_to :referential
- def index
- @hide_group_of_line = referential.group_of_lines.empty?
- index! do |format|
- format.html {
- if collection.out_of_bounds?
- redirect_to params.merge(:page => 1)
- end
- build_breadcrumb :index
- }
- end
- end
-
def show
@routes = resource.routes
@@ -49,6 +37,14 @@ class ReferentialLinesController < ChouetteController
)
show! do
+ @line = ReferentialLineDecorator.decorate(
+ @line,
+ context: {
+ referential: referential,
+ current_organisation: current_organisation
+ }
+ )
+
build_breadcrumb :show
end
end