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