check if ca_file is commented out completly

This commit is contained in:
Jonne Haß 2012-01-02 21:07:46 +01:00
parent 934175c49c
commit 67b2af0da6

View file

@ -80,7 +80,7 @@ HELP
end end
def self.no_cert_file_in_prod? def self.no_cert_file_in_prod?
(Rails.env == "production") && self[:ca_file] && !File.exists?(self[:ca_file]) (Rails.env == "production") && self[:ca_file].blank? || !File.exists?(self[:ca_file])
end end
def self.have_old_config_file? def self.have_old_config_file?