Permalink
Browse files

Add missing CHANGELOG entry about relations as scopes

  • Loading branch information...
1 parent d60bb0a commit 6ce538d4850cca0e6ce71da1a5b8d350e57f154f @lifo lifo committed Jan 17, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 activerecord/CHANGELOG
View
@@ -1,5 +1,13 @@
*Edge*
+* Allow relations to be used as scope.
+
+ class Item
+ scope :red, where(:colour => 'red')
+ end
+
+ Item.red.limit(10) # Ten red items
+
* Rename named_scope to scope. [Pratik Naik]
* Changed ActiveRecord::Base.store_full_sti_class to be true by default reflecting the previously announced Rails 3 default [DHH]

0 comments on commit 6ce538d

Please sign in to comment.