changeset 164:faded97bb095

Correct way to set default of boolean.
author Edho Arief <edho@myconan.net>
date Thu, 13 Dec 2012 18:09:24 +0700
parents d832e1f1328b
children 5466704c87ee
files config/default_config.rb
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/config/default_config.rb	Tue Dec 11 21:57:51 2012 +0300
+++ b/config/default_config.rb	Thu Dec 13 18:09:24 2012 +0700
@@ -1,5 +1,5 @@
-CONFIG['standalone'] ||= true
-CONFIG['newrelic'] ||= false
+CONFIG['standalone'] = true unless CONFIG['standalone']
+CONFIG['newrelic'] = false unless CONFIG['newrelic']
 CONFIG['bundler_groups'] ||= Rails.groups(:assets => %w(development test))
 CONFIG['bundler_groups'] << 'standalone' if CONFIG['standalone']
 CONFIG['bundler_groups'] << 'newrelic' if CONFIG['newrelic']