Makes sense. Thanks :) On Thursday, 28 August 2014 13:35:59 UTC+3, Xavier Noria wrote: > > On Thu, Aug 28, 2014 at 12:24 PM, powiii <corestu...@gmail.com > <javascript:>> wrote: > > > I was thinking to implement a shorthand for validating boolean values. > > > > Instead of doing (which we do right now): > > > > validates :foo, inclusion: [true, false] > > > > you could do the shorter and more idiomatic: > > > > validates :foo, boolean: true > > > > What do you think? If it proves a good idea I'll start working on a PR. > > Has been already discussed: > > > https://groups.google.com/forum/#!msg/rubyonrails-core/HrxYkzUoJ34/ybdTecsvl9cJ > >
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.