diff options
| author | vlatka pavisic | 2016-12-12 15:49:52 +0100 |
|---|---|---|
| committer | vlatka pavisic | 2016-12-12 15:49:58 +0100 |
| commit | 2d4e6b45b0295e8c01deaebb04f8be009a7f9d87 (patch) | |
| tree | efb5139d08a29e9e0c9017b35d34ca8aa611f34d /app/controllers | |
| parent | 73ab4dfc33dcf6b32198ae902fea3f8504821dea (diff) | |
| download | chouette-core-2d4e6b45b0295e8c01deaebb04f8be009a7f9d87.tar.bz2 | |
Refs #1955 : RoutingConstraintZone
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/routing_constraint_zones_controller.rb | 15 |
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 |
