OSDN Git Service

Fix default settings when they are boolean.
authorCyril <jv.cyril@gmail.com>
Thu, 10 Jan 2013 01:09:46 +0000 (02:09 +0100)
committerCyril <jv.cyril@gmail.com>
Thu, 17 Jan 2013 23:00:02 +0000 (00:00 +0100)
commit9db7c16a1ef24c009df4aa4e5b4987b97a53e606
tree2463463be9a83b021034466a4fb0de487ad9348f
parentbf753e99e7d2ba876a62cb5f163375e8fc5fd004
Fix default settings when they are boolean.
error is that ```enabled ||= true``` always evaluates to true.
Change all initialization of bool settings to use the same syntax:
```setting = true if setting.nil?```
config/initializers/1_settings.rb