aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/routing_constraint_zones_controller.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/app/controllers/routing_constraint_zones_controller.rb b/app/controllers/routing_constraint_zones_controller.rb
index 47df211d0..886247e79 100644
--- a/app/controllers/routing_constraint_zones_controller.rb
+++ b/app/controllers/routing_constraint_zones_controller.rb
@@ -13,13 +13,16 @@ class RoutingConstraintZonesController < ChouetteController
def index
index! do |format|
- @routing_constraint_zones = RoutingConstraintZoneDecorator.decorate(
- @routing_constraint_zones,
- context: {
- referential: referential,
- line: parent
- }
- )
+ format.html do
+ @routing_constraint_zones = RoutingConstraintZoneDecorator.decorate(
+ @routing_constraint_zones,
+ context: {
+ referential: referential,
+ line: parent
+ }
+ )
+ end
+ format.json
end
end