1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-31 20:59:38 +00:00

remove spaces inside {} of FilesController

git-svn-id: http://svn.redmine.org/redmine/trunk@20437 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-19 13:31:02 +00:00
parent 1b1016ae8b
commit b4cc30ec17

View File

@ -40,7 +40,7 @@ class FilesController < ApplicationController
@containers += @project.versions.includes(:attachments).
references(:attachments).reorder(sort_clause).to_a.sort.reverse
respond_to do |format|
format.html { render :layout => !request.xhr? }
format.html {render :layout => !request.xhr?}
format.api
end
end
@ -64,7 +64,7 @@ class FilesController < ApplicationController
flash[:notice] = l(:label_file_added)
redirect_to project_files_path(@project)
end
format.api { render_api_ok }
format.api {render_api_ok}
end
else
respond_to do |format|
@ -73,7 +73,7 @@ class FilesController < ApplicationController
new
render :action => 'new'
end
format.api { render :status => :bad_request }
format.api {render :status => :bad_request}
end
end
end