aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/stop_areas_controller.rb
diff options
context:
space:
mode:
authorAlban Peignier2018-03-22 15:48:36 +0100
committerAlban Peignier2018-03-22 15:49:52 +0100
commit246382fd77799e4cf1a04578be0d8f0e982a5164 (patch)
tree3bac0143f42ed368e2a1b7e43a09f18b930dc274 /app/controllers/stop_areas_controller.rb
parent9ae51de7d821aa2d0277fdab3aaeb5f32642a0ca (diff)
downloadchouette-core-246382fd77799e4cf1a04578be0d8f0e982a5164.tar.bz2
Remove maps code. Refs #6296
Diffstat (limited to 'app/controllers/stop_areas_controller.rb')
-rw-r--r--app/controllers/stop_areas_controller.rb17
1 files changed, 1 insertions, 16 deletions
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)