this should fix a weired test polution case on travis where the x-git-revision header is suddenly nil

This commit is contained in:
Jonne Haß 2012-01-06 03:25:36 +01:00
parent 41ecf2b27d
commit 00a800ab07

View file

@ -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