Files
rails/activerecord/test
Andrés Mejía 84dad446c6 Adding first_or_create, first_or_create!, first_or_new and first_or_build to Active Record.
This let's you write things like:

    User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson", :hot => true)

Related to #2420.
2011-08-30 16:33:37 -05:00
..
2008-01-18 07:27:03 +00:00
2010-12-03 12:00:09 -08:00
2011-06-06 15:47:29 -07:00