From: Anton Khorev Date: Sat, 30 Mar 2024 05:34:55 +0000 (+0300) Subject: Rename api changesets index template X-Git-Tag: live~619^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c2c58921122318a63828bf63a52bf1dd8d0fbd2b?hp=-c Rename api changesets index template --- c2c58921122318a63828bf63a52bf1dd8d0fbd2b diff --git a/app/controllers/api/changesets_controller.rb b/app/controllers/api/changesets_controller.rb index 50cb78782..6eeb66e82 100644 --- a/app/controllers/api/changesets_controller.rb +++ b/app/controllers/api/changesets_controller.rb @@ -49,7 +49,6 @@ module Api # preload users, tags and comments, and render result @changesets = changesets.preload(:user, :changeset_tags, :comments) - render "changesets" respond_to do |format| format.xml diff --git a/app/views/api/changesets/changesets.json.jbuilder b/app/views/api/changesets/index.json.jbuilder similarity index 100% rename from app/views/api/changesets/changesets.json.jbuilder rename to app/views/api/changesets/index.json.jbuilder diff --git a/app/views/api/changesets/changesets.xml.builder b/app/views/api/changesets/index.xml.builder similarity index 100% rename from app/views/api/changesets/changesets.xml.builder rename to app/views/api/changesets/index.xml.builder