Skip to content

Commit

Permalink
don't use a rails method in a pre-rails environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed Dec 7, 2012
1 parent 4150a89 commit 2fcf729
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/load_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fcf729

Please sign in to comment.