aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-10-25 18:00:38 +0100
committerLouise Crow <louise.crow@gmail.com>2012-10-25 18:00:38 +0100
commitbec84a144eda607404c2db676b61a486610e51f7 (patch)
tree244742f573a1475a4c0f19ebe334afb630764f17 /app/controllers/request_controller.rb
parent3d3aeca9a522bb25769c6a86c5a8522719a911c1 (diff)
Handle the default blank string passed by Configuration module
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 428dc4c23..c732a4b32 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -44,7 +44,7 @@ class RequestController < ApplicationController
end
def show
- if !Configuration::varnish_host.nil?
+ if !Configuration::varnish_host.blank?
# If varnish is set up to accept PURGEs, then cache for a
# long time
long_cache