Re: [Rails-core] Re: false.present? is false. Is it desired behaviour?

2013-06-27 Thread Amitav Mohanty
Hey On Wed, Jun 26, 2013 at 10:04 PM, Piotr Sarnacki dro...@gmail.com wrote: While technically you could say that false is present, it would be really unintuitive for most of the people as present? is supposed to be just opposite of blank? and is used to check for truthiness. Additionally

Re: [Rails-core] Re: false.present? is false. Is it desired behaviour?

2013-06-25 Thread Amitav Mohanty
Hey On Tue, Jun 25, 2013 at 8:06 PM, James Pinto tap...@gmail.com wrote: I understand where you're coming from, and I completely disagree false is blank, but it's not nil, Well I think since it is a value, it should not be considered blank. however, in some cases, falseness should not

[Rails-core] false.present? is false. Is it desired behaviour?

2013-05-30 Thread Amitav Mohanty
Hey I initially posted this idea on Github where I was suggested by Steve to post it here. The idea is as follows. With the current definition of blank? as defined in