-class OldNodesController < OldController
- private
-
- def lookup_old_element
- @old_element = OldNode.find([params[:id], params[:version]])
+class OldNodesController < OldElementsController
+ def index
+ @type = "node"
+ @feature = Node.preload(:node_tags, :old_nodes => [:old_tags, { :changeset => [:changeset_tags, :user] }]).find(params[:id])
+ rescue ActiveRecord::RecordNotFound
+ render "browse/not_found", :status => :not_found
end
- def lookup_old_element_versions
- @elements = OldNode.where(:node_id => params[:id]).order(:version)
+ def show
+ @type = "node"
+ @feature = OldNode.preload(:old_tags, :changeset => [:changeset_tags, :user]).find([params[:id], params[:version]])
+ rescue ActiveRecord::RecordNotFound
+ render "browse/not_found", :status => :not_found
end
end