From 246382fd77799e4cf1a04578be0d8f0e982a5164 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Thu, 22 Mar 2018 15:48:36 +0100 Subject: Remove maps code. Refs #6296 --- app/controllers/stop_areas_controller.rb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'app/controllers/stop_areas_controller.rb') diff --git a/app/controllers/stop_areas_controller.rb b/app/controllers/stop_areas_controller.rb index a71392344..d0d9f652d 100644 --- a/app/controllers/stop_areas_controller.rb +++ b/app/controllers/stop_areas_controller.rb @@ -65,22 +65,15 @@ class StopAreasController < ChouetteController def new authorize resource_class - # @map = StopAreaMap.new( Chouette::StopArea.new).with_helpers(self) - # @map.editable = true new! end def create authorize resource_class - # @map = StopAreaMap.new( Chouette::StopArea.new).with_helpers(self) - # @map.editable = true - create! end def show - # map.editable = false - # @access_points = @stop_area.access_points show! do |format| unless stop_area.position or params[:default] or params[:routing] format.kml { @@ -95,9 +88,7 @@ class StopAreasController < ChouetteController def edit authorize stop_area - edit! do - map.editable = true - end + super end def destroy @@ -107,8 +98,6 @@ class StopAreasController < ChouetteController def update authorize stop_area - map.editable = true - update! end @@ -129,10 +118,6 @@ class StopAreasController < ChouetteController alias_method :stop_area, :resource alias_method :stop_area_referential, :parent - def map - @map = StopAreaMap.new(stop_area).with_helpers(self) - end - def collection scope = parent.present? ? parent.stop_areas : referential.stop_areas scope = ransack_status(scope) -- cgit v1.2.3