Mercurial > zeropaste
diff 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 |
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']