diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-28 12:33:35 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-28 12:42:06 +0530 |
commit | a3c1db4e444baa8ae4f8d968fab786e03c93f413 (patch) | |
tree | 0a4aaf8ff52648ff9e9593c867300765a66d3445 /activerecord/CHANGELOG | |
parent | 1c47d04ea5ac19601b316daf8fdc6f38c50eec73 (diff) | |
download | rails-a3c1db4e444baa8ae4f8d968fab786e03c93f413.tar.gz rails-a3c1db4e444baa8ae4f8d968fab786e03c93f413.tar.bz2 rails-a3c1db4e444baa8ae4f8d968fab786e03c93f413.zip |
Add Model.lock and relation#lock now that arel has locking
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 3f4d77979b..2f0bdb6582 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,12 @@ *Edge* +* Add .lock finder method [Pratik Naik] + + User.lock.where(:name => 'lifo').to_a + + old_items = Item.where("age > 100") + old_items.locked.each {|i| .. } + * Add Model.from and association_collection#from finder methods [Pratik Naik] user = User.scoped |