Permalink
Browse files

don't use a rails method in a pre-rails environment

  • Loading branch information...
1 parent 4150a89 commit 2fcf729f64af545a01e587caeeadda1234d47c44 @jhass jhass committed Dec 7, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 config/load_config.rb
View
5 config/load_config.rb
@@ -40,7 +40,10 @@
extend Configuration::Methods
- if rails_env == "production" && (environment.certificate_authorities.blank? || !File.file?(environment.certificate_authorities.get))
+if rails_env == "production" &&
+ (environment.certificate_authorities.nil? ||
+ environment.certificate_authorities.empty? ||
+ !File.file?(environment.certificate_authorities.get))
$stderr.puts "FATAL: Diaspora doesn't know where your certificate authorities are. Please ensure they are set to a valid path in diaspora.yml"
Process.exit(1)
end

0 comments on commit 2fcf729

Please sign in to comment.