From d19e46421cbead18ab1a9f79081b99bf3e97dde5 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 20 Jun 2006 22:48:52 +0000 Subject: Added find_or_initialize_by_X which works like find_or_create_by_X but doesn't save the newly instantiated record git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/CHANGELOG') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index e0bd849365..23845ebaf0 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added find_or_initialize_by_X which works like find_or_create_by_X but doesn't save the newly instantiated record. [Sam Stephenson] + * Row locking. Provide a locking clause with the :lock finder option or true for the default "FOR UPDATE". Use the #lock! method to obtain a row lock on a single record (reloads the record with :lock => true). [Shugo Maeda] # Obtain an exclusive lock on person 1 so we can safely increment visits. Person.transaction do -- cgit v1.2.3