rails-settings icon indicating copy to clipboard operation
rails-settings copied to clipboard

handling boolean vars

Open sasharevzin opened this issue 11 years ago • 0 comments

seems like rails-settings doesn't know how to handle boolean values:

1.9.3-p392 :011 > Settings.test_mode
 => nil 
1.9.3-p392 :012 > Settings.test_mode = true
 => true 
1.9.3-p392 :013 > Settings.test_mode 
 => true 
1.9.3-p392 :014 > Settings.test_mode = false
 => false 
1.9.3-p392 :015 > Settings.test_mode 
 => nil 

here i tried to change from true to false and then asked for it but got nil and not false as expected

sasharevzin avatar May 27 '13 22:05 sasharevzin