diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb index a74a35c2..0a0b11d5 100644 --- a/app/controllers/maps_controller.rb +++ b/app/controllers/maps_controller.rb @@ -4,8 +4,6 @@ class MapsController < ApplicationController before_action :set_map, only: [:show, :update, :destroy, :access, :contains, :events, :export, :screenshot, :star, :unstar] after_action :verify_authorized - respond_to :html, :json, :csv - autocomplete :map, :name, full: true, extra_data: [:user_id] # GET maps/:id @@ -24,7 +22,6 @@ class MapsController < ApplicationController end format.json { render json: @map } format.csv { redirect_to action: :export, format: :csv } - format.xls { redirect_to action: :export, format: :xls } end end @@ -118,7 +115,6 @@ class MapsController < ApplicationController respond_to do |format| format.json { render json: exporter.json } format.csv { send_data exporter.csv } - format.xls { @spreadsheet = exporter.xls } end end diff --git a/app/services/map_export_service.rb b/app/services/map_export_service.rb index 2ded756c..4e1d216e 100644 --- a/app/services/map_export_service.rb +++ b/app/services/map_export_service.rb @@ -22,10 +22,6 @@ class MapExportService end end - def xls - to_spreadsheet - end - private def topic_headings diff --git a/app/views/maps/export.xls.erb b/app/views/maps/export.xls.erb deleted file mode 100644 index 7030d501..00000000 --- a/app/views/maps/export.xls.erb +++ /dev/null @@ -1,9 +0,0 @@ -
<%= field %> | - <% end %> -