Sha256: 9b65ec4dc47a35a49a4440985ffa09fba798f450c70698f02ca2c04cacb63dd0

Contents?: true

Size: 388 Bytes

Versions: 69

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class StaticMapController < Decidim::ApplicationController
    skip_before_action :store_current_location

    def show
      send_data StaticMapGenerator.new(resource).data, type: "image/jpeg", disposition: "inline"
    end

    private

    def resource
      @resource ||= GlobalID::Locator.locate_signed params[:sgid]
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.28.4 app/controllers/decidim/static_map_controller.rb
decidim-core-0.27.9 app/controllers/decidim/static_map_controller.rb
decidim-core-0.29.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.28.3 app/controllers/decidim/static_map_controller.rb
decidim-core-0.27.8 app/controllers/decidim/static_map_controller.rb
decidim-core-0.29.0.rc4 app/controllers/decidim/static_map_controller.rb
decidim-core-0.29.0.rc3 app/controllers/decidim/static_map_controller.rb
decidim-core-0.29.0.rc2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.29.0.rc1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.28.2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.27.7 app/controllers/decidim/static_map_controller.rb
decidim-core-0.28.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.27.6 app/controllers/decidim/static_map_controller.rb
decidim-core-0.26.10 app/controllers/decidim/static_map_controller.rb
decidim-core-0.26.9 app/controllers/decidim/static_map_controller.rb
decidim-core-0.28.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.27.5 app/controllers/decidim/static_map_controller.rb
decidim-core-0.28.0.rc5 app/controllers/decidim/static_map_controller.rb
decidim-core-0.28.0.rc4 app/controllers/decidim/static_map_controller.rb