this should fix a weired test polution case on travis where the x-git-revision header is suddenly nil
This commit is contained in:
parent
41ecf2b27d
commit
00a800ab07
1 changed files with 2 additions and 2 deletions
|
|
@ -73,8 +73,8 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def set_git_header
|
||||
headers['X-Git-Update'] = AppConfig[:git_update]
|
||||
headers['X-Git-Revision'] = AppConfig[:git_revision]
|
||||
headers['X-Git-Update'] = AppConfig[:git_update] if AppConfig[:git_update].present?
|
||||
headers['X-Git-Revision'] = AppConfig[:git_revision] if AppConfig[:git_revision].present?
|
||||
end
|
||||
|
||||
def set_locale
|
||||
|
|
|
|||
Loading…
Reference in a new issue