diff options
author | Dosuken shinya <gitlab.shinyamaeda@gmail.com> | 2017-04-28 09:38:32 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-28 09:38:32 +0000 |
commit | 73ac7b2dd6ad31b0ab3191d123cc0b17c669cefb (patch) | |
tree | f6b628a6e8d6baea557ed989e669a830ec6873b0 /app/controllers/application_controller.rb | |
parent | 00fd0259e5878957320ef2adc4940cbd73614add (diff) | |
download | gitlab-ce-73ac7b2dd6ad31b0ab3191d123cc0b17c669cefb.tar.gz |
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.rb | 4 |
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" |