Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <web-client> use-activeresource : fixed plugin reloading configuration
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 24 Aug 2009 15:37:54 +0200
  • Message-id: <E1MoJ2I-00036R-T4@xxxxxxxxxxxxxxxx>
ref: refs/heads/use-activeresource
commit cef25936c36b86a542fc6f4dd50f40349bdaf69b
Author: Ladislav Slezak <lslezak@xxxxxxxxxx>
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_plugins-true-only-works-in-environmentrb
- 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages