ref: refs/heads/basesystem
commit cef25936c36b86a542fc6f4dd50f40349bdaf69b
Author: Ladislav Slezak
Date: Tue Aug 18 16:06:56 2009 +0200
fixed plugin reloading configuration
Rails.env.production? test doesn't work in test mode
---
webclient/config/environment.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/webclient/config/environment.rb b/webclient/config/environment.rb
index 94da891..57af2b9 100644
--- a/webclient/config/environment.rb
+++ b/webclient/config/environment.rb
@@ -77,7 +77,7 @@ init = Rails::Initializer.run do |config|
# reload all plugins, changes in *.rb files take effect immediately
# it's here because of https://rails.lighthouseapp.com/projects/8994/tickets/2324-configreload_plug...
- config.reload_plugins = true unless Rails.env.production?
+ config.reload_plugins = true if ENV['RAILS_ENV'] == 'development'
# In order to prevent unloading of AuthenticatedSystem
config.load_once_paths += %W( #{RAILS_ROOT}/lib )
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org