X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb80bd3b966e1f780b7a1db1cf2d32716643caea..2b7a48029bff06c190544f91c5969b09aeae552b:/app/controllers/old_relations_controller.rb diff --git a/app/controllers/old_relations_controller.rb b/app/controllers/old_relations_controller.rb index ea4fb6d12..ec256d6af 100644 --- a/app/controllers/old_relations_controller.rb +++ b/app/controllers/old_relations_controller.rb @@ -2,7 +2,6 @@ class OldRelationsController < OldElementsController def index @type = "relation" @feature = Relation.preload(:relation_tags, :old_relations => [:old_tags, { :changeset => [:changeset_tags, :user], :old_members => :member }]).find(params[:id]) - render "browse/history" rescue ActiveRecord::RecordNotFound render "browse/not_found", :status => :not_found end @@ -11,6 +10,6 @@ class OldRelationsController < OldElementsController @type = "relation" @feature = OldRelation.preload(:old_tags, :changeset => [:changeset_tags, :user], :old_members => :member).find([params[:id], params[:version]]) rescue ActiveRecord::RecordNotFound - render :action => "not_found", :status => :not_found + render "browse/not_found", :status => :not_found end end