Rename api changeset show template

Make template name correspond to action name.
This commit is contained in:
Anton Khorev 2024-03-30 08:10:24 +03:00
parent 50df5eefcc
commit 558c8765f5
4 changed files with 6 additions and 7 deletions

View file

@ -42,7 +42,7 @@ module Api
# Return a copy of the updated changeset
@changeset = changeset
render "api/changesets/changeset"
render "api/changesets/show"
respond_to do |format|
format.xml
@ -67,7 +67,7 @@ module Api
# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"
render "api/changesets/show"
respond_to do |format|
format.xml
@ -92,7 +92,7 @@ module Api
# Return a copy of the updated changeset
@changeset = comment.changeset
render "api/changesets/changeset"
render "api/changesets/show"
respond_to do |format|
format.xml

View file

@ -28,7 +28,6 @@ module Api
@comments = @comments.unscope(:where => :visible) if params[:show_hidden_comments].presence && can?(:restore, ChangesetComment)
@comments = @comments.includes(:author)
end
render "changeset"
respond_to do |format|
format.xml
@ -198,7 +197,7 @@ module Api
check_changeset_consistency(@changeset, current_user)
@changeset.update_from(new_changeset, current_user)
render "changeset"
render "show"
respond_to do |format|
format.xml
@ -224,7 +223,7 @@ module Api
# Return a copy of the updated changeset
@changeset = changeset
render "changeset"
render "show"
respond_to do |format|
format.xml
@ -250,7 +249,7 @@ module Api
# Return a copy of the updated changeset
@changeset = changeset
render "changeset"
render "show"
respond_to do |format|
format.xml