Hi. Rails 4 has introduced a `take` method to AR, which is like `first` without ordering. But there's no equivalent method for `first_or_create`, `first_or_initialize` and friends.
Has this actually been considered or just accidentally missed? I don't think I ever cared about ordering when calling `first_or_create`. What do you think? Would it make sense either to replace `first_or_create` with `take_or_create`, or have them both? -- 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 https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.