diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 12:43:49 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 12:43:49 +0530 |
commit | 5f5aa44d2de9e7d93087d52862502c12722bdae3 (patch) | |
tree | e6c481cb2f449dc4b98ce8262650a513d0eeedd2 | |
parent | feb8b20eb552eee678448233672733c6e7ca9571 (diff) | |
download | rails-5f5aa44d2de9e7d93087d52862502c12722bdae3.tar.gz rails-5f5aa44d2de9e7d93087d52862502c12722bdae3.tar.bz2 rails-5f5aa44d2de9e7d93087d52862502c12722bdae3.zip |
Add missing changelog entries
-rw-r--r-- | activerecord/CHANGELOG | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index be4d197f99..d13a9e61df 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,30 @@ *Edge* +* Rename Model.conditions and relation.conditions to .where. [Pratik Naik] + + Before : + User.conditions(:name => 'lifo') + User.select('id').conditions(["age > ?", 21]) + + Now : + User.where(:name => 'lifo') + User.select('id').where(["age > ?", 21]) + +* Add Model.select/group/order/limit/joins/conditions/preload/eager_load class methods returning a lazy relation. [Pratik Naik] + + Examples : + + posts = Post.select('id).order('name') # Returns a lazy relation + posts.each {|p| puts p.id } # Fires "select id from posts order by name" + +* Model.scoped now returns a relation if invoked without any arguments. [Pratik Naik] + + Example : + + posts = Post.scoped + posts.size # Fires "select count(*) from posts" and returns the count + posts.each {|p| puts p.name } # Fires "select * from posts" and loads post objects + * Association inverses for belongs_to, has_one, and has_many. Optimization to reduce database queries. #3533 [Murray Steele] # post.comments sets each comment's post without needing to :include |