diff options
| author | Teddy Wing | 2017-07-07 16:52:47 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-07-12 11:06:03 +0200 |
| commit | 4797bfbfec8f97ef09f62d6b170b8f749be4a0bf (patch) | |
| tree | b138d64a68faba3b9fe50648cd3b38309c7cffb6 /app/controllers | |
| parent | 9ab672a31cd3a1aeea59e6ae3dab96e4057ee997 (diff) | |
| download | chouette-core-4797bfbfec8f97ef09f62d6b170b8f749be4a0bf.tar.bz2 | |
Companies#index: Use new table builder helper
Refs #3479
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/companies_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index 9d33c6cb8..1596975b8 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -15,6 +15,14 @@ class CompaniesController < BreadcrumbController if collection.out_of_bounds? redirect_to params.merge(:page => 1) end + + @companies = ModelDecorator.decorate( + @companies, + with: CompanyDecorator, + context: { + line_referential: line_referential + } + ) } build_breadcrumb :index end |
