comparison config/default_config.rb @ 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 d7b64b639d15
children 5466704c87ee
comparison
equal deleted inserted replaced
163:d832e1f1328b 164:faded97bb095
1 CONFIG['standalone'] ||= true 1 CONFIG['standalone'] = true unless CONFIG['standalone']
2 CONFIG['newrelic'] ||= false 2 CONFIG['newrelic'] = false unless CONFIG['newrelic']
3 CONFIG['bundler_groups'] ||= Rails.groups(:assets => %w(development test)) 3 CONFIG['bundler_groups'] ||= Rails.groups(:assets => %w(development test))
4 CONFIG['bundler_groups'] << 'standalone' if CONFIG['standalone'] 4 CONFIG['bundler_groups'] << 'standalone' if CONFIG['standalone']
5 CONFIG['bundler_groups'] << 'newrelic' if CONFIG['newrelic'] 5 CONFIG['bundler_groups'] << 'newrelic' if CONFIG['newrelic']