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