]> git.openstreetmap.org Git - rails.git/blob - app/controllers/share_panes_controller.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / controllers / share_panes_controller.rb
1 # frozen_string_literal: true
2
3 class SharePanesController < ApplicationController
4   before_action :authorize_web
5   before_action :set_locale
6   authorize_resource :class => false
7
8   def show
9     @downloadable_layers = MapLayers.full_definitions("config/layers.yml")
10                                     .select { |layer| layer["canDownloadImage"] }
11     render :layout => false
12   end
13 end