diff options
author | Francis Irving <francis@mysociety.org> | 2010-05-07 14:35:34 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-05-07 14:35:34 +0100 |
commit | 51871531f390ab94120f96cec5b20811e0412e2d (patch) | |
tree | c0bb830e22f5c8bb2164b641524ce67e6c9357fe /app/controllers/application_controller.rb | |
parent | 586355b5f65bcef2e253be4a7e2674bc235eafc1 (diff) |
Use .empty
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0e01ac149..58266eb42 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -178,7 +178,7 @@ class ApplicationController < ActionController::Base # def check_read_only read_only = MySociety::Config.get('READ_ONLY') - if read_only + if !read_only.empty? flash[:notice] = "<p>WhatDoTheyKnow is currently in maintenance. You can only view existing requests. You cannot make new ones, add followups or annotations, or otherwise change the database.</p> <p>" + read_only + "</p>" redirect_to frontpage_url end |