]> git.openstreetmap.org Git - rails.git/blob - app/controllers/relations_controller.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / controllers / relations_controller.rb
1 # frozen_string_literal: true
2
3 class RelationsController < ElementsController
4   def show
5     @type = "relation"
6     @feature = Relation.preload(:element_tags, :containing_relation_members, :changeset => [:changeset_tags, :user]).find(params[:id])
7   rescue ActiveRecord::RecordNotFound
8     render "browse/not_found", :status => :not_found
9   end
10 end