From c2c58921122318a63828bf63a52bf1dd8d0fbd2b Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 30 Mar 2024 08:34:55 +0300 Subject: [PATCH] Rename api changesets index template --- app/controllers/api/changesets_controller.rb | 1 - .../changesets/{changesets.json.jbuilder => index.json.jbuilder} | 0 .../api/changesets/{changesets.xml.builder => index.xml.builder} | 0 3 files changed, 1 deletion(-) rename app/views/api/changesets/{changesets.json.jbuilder => index.json.jbuilder} (100%) rename app/views/api/changesets/{changesets.xml.builder => index.xml.builder} (100%) 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 -- 2.39.5