From b8bbff4ad0e909d8ac019a006476b7af631ed326 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 13 Feb 2015 10:52:00 +0100 Subject: [PATCH] use the accessor method in order to work with arrays in env vars --- config/initializers/module_handler.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/module_handler.rb b/config/initializers/module_handler.rb index 418b8051c8..46226fb2e2 100644 --- a/config/initializers/module_handler.rb +++ b/config/initializers/module_handler.rb @@ -27,7 +27,7 @@ # See doc/COPYRIGHT.rdoc for more details. #++ -unless OpenProject::Configuration['disabled_modules'].empty? - to_disable = OpenProject::Configuration['disabled_modules'] +unless OpenProject::Configuration.disabled_modules.empty? + to_disable = OpenProject::Configuration.disabled_modules OpenProject::Plugins::ModuleHandler.disable_modules(to_disable) end