diff options
author | Sam Stephenson <sam@37signals.com> | 2006-06-20 22:48:52 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2006-06-20 22:48:52 +0000 |
commit | d19e46421cbead18ab1a9f79081b99bf3e97dde5 (patch) | |
tree | b545b00f7fb45437e0947b6ae839840ecaa2cf13 /activerecord/CHANGELOG | |
parent | ef77ec77109a22361b5ee30b851eb3e5c8871eaa (diff) | |
download | rails-d19e46421cbead18ab1a9f79081b99bf3e97dde5.tar.gz rails-d19e46421cbead18ab1a9f79081b99bf3e97dde5.tar.bz2 rails-d19e46421cbead18ab1a9f79081b99bf3e97dde5.zip |
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
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 2 |
1 files changed, 2 insertions, 0 deletions
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 |