]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_nodes_controller.rb
Merge remote-tracking branch 'upstream/pull/4996'
[rails.git] / app / controllers / old_nodes_controller.rb
index 9ef2ef881671550281858e5d8d967760646eb456..596b579673649c4bcd806c628dd8a8218a8344ed 100644 (file)
@@ -11,6 +11,14 @@ class OldNodesController < ApplicationController
   before_action :require_moderator_for_unredacted_history
   around_action :web_timeout
 
+  def index
+    @type = "node"
+    @feature = Node.preload(:node_tags, :old_nodes => [:old_tags, { :changeset => [:changeset_tags, :user] }]).find(params[:id])
+    render "browse/history"
+  rescue ActiveRecord::RecordNotFound
+    render "browse/not_found", :status => :not_found
+  end
+
   def show
     @type = "node"
     @feature = OldNode.preload(:old_tags, :changeset => [:changeset_tags, :user]).find([params[:id], params[:version]])