Displaying 1 result from an estimated 1 matches for "l448".
Did you mean:
448
2012 Jul 24
4
Behavior of first_or_create
...re(:first_name => ''Scarlett'').first_or_create(:last_name => "O''Hara")
would do.
I also found that DataMapper implements the behavior I was expecting in their first_or_create method:
https://github.com/datamapper/dm-core/blob/master/lib/dm-core/model.rb#L448
Thoughts?
--Matt Jones
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegr...