X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b9ae40d9784725b75e5b52f55659c80326656d8f..8ad1ce97983a5d4fb86ccb8ee4cd640a76f95255:/app/controllers/api/relations_controller.rb diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index 41f4e325a..2f2cb8503 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -22,11 +22,9 @@ module Api end def show - relation = Relation.find(params[:id]) - response.last_modified = relation.timestamp - if relation.visible - @relation = relation - + @relation = Relation.find(params[:id]) + response.last_modified = @relation.timestamp + if @relation.visible # Render the result respond_to do |format| format.xml