On Sunday, June 29, 2014 10:22:58 AM UTC-5, Eyal Levin wrote: > > Hi, > > I couldn't find a one word opposite for > > MyModel.any? > > > I'm guessing that's not your complete use-case. Do you just want to see if there are any records saved for that model? MyModel.count(:all).zero?
How about #none? That would be the Enumerable way to do it. -Benjamin -- 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.