Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDosuken shinya <gitlab.shinyamaeda@gmail.com>2017-04-28 12:38:32 +0300
committerRémy Coutable <remy@rymai.me>2017-04-28 12:38:32 +0300
commit73ac7b2dd6ad31b0ab3191d123cc0b17c669cefb (patch)
treef6b628a6e8d6baea557ed989e669a830ec6873b0 /app/controllers/application_controller.rb
parent00fd0259e5878957320ef2adc4940cbd73614add (diff)
Resolve "Add more tests for spec/controllers/projects/builds_controller_spec.rb"
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index e77094fe2a8..e48f0963ef4 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -118,6 +118,10 @@ class ApplicationController < ActionController::Base
end
end
+ def respond_422
+ head :unprocessable_entity
+ end
+
def no_cache_headers
response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
response.headers["Pragma"] = "no-cache"