diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-18 04:42:04 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-18 04:42:04 +0530 |
commit | 6ce538d4850cca0e6ce71da1a5b8d350e57f154f (patch) | |
tree | fb2fd819f81d019b281c421c7963bce8c0d2c6fc | |
parent | d60bb0a9e4be2ac0a9de9a69041a4ddc2e0cc914 (diff) | |
download | rails-6ce538d4850cca0e6ce71da1a5b8d350e57f154f.tar.gz rails-6ce538d4850cca0e6ce71da1a5b8d350e57f154f.tar.bz2 rails-6ce538d4850cca0e6ce71da1a5b8d350e57f154f.zip |
Add missing CHANGELOG entry about relations as scopes
-rw-r--r-- | activerecord/CHANGELOG | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index f6b2ef553e..ffff0b7e09 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -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] |