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.25.0.rc4 app/controllers/decidim/static_map_controller.rb
decidim-core-0.25.0.rc3 app/controllers/decidim/static_map_controller.rb
decidim-core-0.25.0.rc2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.25.0.rc1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.24.3 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.6 app/controllers/decidim/static_map_controller.rb
decidim-core-0.24.2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.5 app/controllers/decidim/static_map_controller.rb
decidim-core-0.24.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.24.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.24.0.rc2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.4 app/controllers/decidim/static_map_controller.rb
decidim-core-0.24.0.rc1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.3 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.1.rc1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.23.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.22.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.21.0 app/controllers/decidim/static_map_controller.rb