Sha256: 6291d3a71dc0a0b716465ad5ff6110737d9830d13e589b75a00fdffb7ea64f14

Contents?: true

Size: 340 Bytes

Versions: 16

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class StaticMapController < Decidim::ApplicationController
    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

16 entries across 16 versions & 1 rubygems

Version Path
decidim-core-0.16.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.16.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.15.2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.15.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.15.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.14.4 app/controllers/decidim/static_map_controller.rb
decidim-core-0.14.3 app/controllers/decidim/static_map_controller.rb
decidim-core-0.14.2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.14.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.13.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.12.2 app/controllers/decidim/static_map_controller.rb
decidim-core-0.13.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.12.1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.13.0.pre1 app/controllers/decidim/static_map_controller.rb
decidim-core-0.12.0 app/controllers/decidim/static_map_controller.rb
decidim-core-0.12.0.pre app/controllers/decidim/static_map_controller.rb