[Git][noosfero/noosfero][master] environment: fix config.local.rb load

Bráulio Bhavamitra gitlab at mg.gitlab.com
Thu Sep 1 10:45:30 BRT 2016


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
e3693641 by Braulio Bhavamitra at 2016-09-01T10:44:54-03:00
environment: fix config.local.rb load

- - - - -


1 changed file:

- config/environment.rb


Changes:

=====================================
config/environment.rb
=====================================
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -3,7 +3,7 @@ require_relative 'application'
 Noosfero::Application.initialize!
 
 # load a local configuration if present, but not under test environment.
-if ENV['RAILS_ENV'].in? %w[test cucumber]
+unless ENV['RAILS_ENV'].in? %w[test cucumber]
   localconfigfile = Rails.root.join('config', 'local.rb')
   require localconfigfile if File.exists? localconfigfile
 end



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/e3693641128f200ca6609b05df7065ad9f0e7302
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160901/37e3c036/attachment.html>


More information about the Noosfero-dev mailing list