aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/routing_constraint_zones_controller.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/controllers/routing_constraint_zones_controller.rb b/app/controllers/routing_constraint_zones_controller.rb
new file mode 100644
index 000000000..1c2c40cbb
--- /dev/null
+++ b/app/controllers/routing_constraint_zones_controller.rb
@@ -0,0 +1,15 @@
+class RoutingConstraintZonesController < ChouetteController
+ defaults resource_class: Chouette::RoutingConstraintZone
+
+ respond_to :html, :xml, :json
+
+ belongs_to :referential do
+ belongs_to :line, parent_class: Chouette::Line
+ end
+
+ private
+ def routing_constraint_zone_params
+ params.require(:routing_constraint_zone).permit(:name, { stop_area_ids: [] }, :line_id, :objectid, :object_version, :creation_time, :creator_id)
+ end
+
+end