Class: Decidim::StaticMapController

Inherits:
ApplicationController show all
Defined in:
decidim-core/app/controllers/decidim/static_map_controller.rb

Instance Method Summary collapse

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#showObject


7
8
9
# File 'decidim-core/app/controllers/decidim/static_map_controller.rb', line 7

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