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