]> git.openstreetmap.org Git - rails.git/blob - app/controllers/elements_controller.rb
Merge pull request #6394 from openstreetmap/dependabot/github_actions/ruby/setup...
[rails.git] / app / controllers / elements_controller.rb
1 # frozen_string_literal: true
2
3 class ElementsController < ApplicationController
4   layout :map_layout
5
6   before_action :authorize_web
7   before_action :set_locale
8   before_action -> { check_database_readable(:need_api => true) }
9   before_action :require_oauth
10
11   authorize_resource
12
13   around_action :web_timeout
14 end