search for: presence_of_boolean

Displaying 1 result from an estimated 1 matches for "presence_of_boolean".

2013 Nov 14
6
validates :boolean_field, presence: true misconceptions
...alse. I checked the rails issues and this seems to be a pretty common concern about the naming of ''presence'' . Instead of changing the behaviour of the presence validator, I was wondering if maybe the answer to avoid such misconceptions could be to create a new validator called presence_of_boolean that abstracts the sometimes called "hacky" validates_inclusion in: [true, false] What do you guys think? Sergio Campamá -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receivin...