From 00a800ab07367f0702be5ac43aafd43a0fda482c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Fri, 6 Jan 2012 03:25:36 +0100 Subject: [PATCH] this should fix a weired test polution case on travis where the x-git-revision header is suddenly nil --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1f0d841ee..db300844f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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