Move changeset builder views to the api namespace

This commit is contained in:
Andy Allan 2019-03-13 12:04:54 +01:00 committed by Tom Hughes
parent 538bfed8a6
commit 656ed0af76
5 changed files with 11 additions and 11 deletions

View file

@ -42,7 +42,7 @@ module Api
# Return a copy of the updated changeset
@changeset = changeset
render "changesets/changeset"
render "api/changesets/changeset"
end
##
@ -62,7 +62,7 @@ module Api
# Return a copy of the updated changeset
@changeset = comment.changeset
render "changesets/changeset"
render "api/changesets/changeset"
end
##
@ -82,7 +82,7 @@ module Api
# Return a copy of the updated changeset
@changeset = comment.changeset
render "changesets/changeset"
render "api/changesets/changeset"
end
end
end

View file

@ -43,7 +43,7 @@ module Api
def show
@changeset = Changeset.find(params[:id])
@include_discussion = params[:include_discussion].presence
render "changesets/changeset"
render "changeset"
end
##
@ -105,7 +105,7 @@ module Api
# will include the bigger bounding box.
cs.save!
@changeset = cs
render "changesets/changeset"
render "changeset"
end
##
@ -222,7 +222,7 @@ module Api
# preload users, tags and comments, and render result
@changesets = changesets.preload(:user, :changeset_tags, :comments)
render "changesets/changesets"
render "changesets"
end
##
@ -242,7 +242,7 @@ module Api
check_changeset_consistency(@changeset, current_user)
@changeset.update_from(new_changeset, current_user)
render "changesets/changeset"
render "changeset"
end
##
@ -263,7 +263,7 @@ module Api
# Return a copy of the updated changeset
@changeset = changeset
render "changesets/changeset"
render "changeset"
end
##
@ -284,7 +284,7 @@ module Api
# Return a copy of the updated changeset
@changeset = changeset
render "changesets/changeset"
render "changeset"
end
private