aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-12-28 16:16:21 +0530
committerPratik Naik <pratiknaik@gmail.com>2009-12-28 16:17:46 +0530
commit02207dc02c10f2b00a84594962d7bf6ffcf539a9 (patch)
tree562109a2dee894c95eeb40164999a9af88032a5b /activerecord/CHANGELOG
parent5156507e13bb17f1852576acfd921a39e06de175 (diff)
downloadrails-02207dc02c10f2b00a84594962d7bf6ffcf539a9.tar.gz
rails-02207dc02c10f2b00a84594962d7bf6ffcf539a9.tar.bz2
rails-02207dc02c10f2b00a84594962d7bf6ffcf539a9.zip
Add Model.readonly and association_collection#readonly finder method
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 1e3d7a51b9..93c4696eca 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,10 @@
*Edge*
+* Add Model.readonly and association_collection#readonly finder method. [Pratik Naik]
+
+ Post.readonly.to_a # Load all posts in readonly mode
+ @user.items.readonly(false).to_a # Load all the user items in writable mode
+
* Add .lock finder method [Pratik Naik]
User.lock.where(:name => 'lifo').to_a