diff options
| author | Teddy Wing | 2017-06-12 16:58:25 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-12 16:58:25 +0200 |
| commit | 26d3971892dbeacffba678a3dd9593095da14b29 (patch) | |
| tree | 83649cf367a9061ceff74632e3cfbb6da02c27cf /app | |
| parent | 3a7fc919944b3c090eb5d9eab576eb7c1ac3df9d (diff) | |
| download | chouette-core-26d3971892dbeacffba678a3dd9593095da14b29.tar.bz2 | |
ReferentialsController#show: Fix whitespace
Method was indented by three spaces. Should be two.
Refs #3479
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 437444f29..c65e6552c 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -24,19 +24,19 @@ class ReferentialsController < BreadcrumbController end def show - resource.switch - show! do |format| - format.json { - render :json => { :lines_count => resource.lines.count, - :networks_count => resource.networks.count, - :vehicle_journeys_count => resource.vehicle_journeys.count + resource.vehicle_journey_frequencies.count, - :time_tables_count => resource.time_tables.count, - :referential_id => resource.id} - } - format.html { build_breadcrumb :show} - end - - @reflines = lines_collection.paginate(page: params[:page], per_page: 10) + resource.switch + show! do |format| + format.json { + render :json => { :lines_count => resource.lines.count, + :networks_count => resource.networks.count, + :vehicle_journeys_count => resource.vehicle_journeys.count + resource.vehicle_journey_frequencies.count, + :time_tables_count => resource.time_tables.count, + :referential_id => resource.id} + } + format.html { build_breadcrumb :show} + end + + @reflines = lines_collection.paginate(page: params[:page], per_page: 10) end def edit |
