diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-17 10:17:42 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-17 10:17:42 -0800 |
commit | 6ff506ffbc438a92cb6d3cb4351a0a463d57424a (patch) | |
tree | b00760f78a94ea0f226cf825f26ef6db8890fdc5 /activerecord/CHANGELOG | |
parent | 29a31912fcedde9e271af8a20b890f8c62e1ea79 (diff) | |
parent | 4b33fae1f52325d22083de2e83d827b924d1c616 (diff) | |
download | rails-6ff506ffbc438a92cb6d3cb4351a0a463d57424a.tar.gz rails-6ff506ffbc438a92cb6d3cb4351a0a463d57424a.tar.bz2 rails-6ff506ffbc438a92cb6d3cb4351a0a463d57424a.zip |
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index c2299b56ad..c1d7297260 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,3 +1,19 @@ +*2.3.0/3.0* + +* Added default_scope to Base #1381 [Paweł Kondzior]. Example: + + class Person < ActiveRecord::Base + default_scope :order => 'last_name, first_name' + end + + class Company < ActiveRecord::Base + has_many :people + end + + Person.all # => Person.find(:all, :order => 'last_name, first_name') + Company.find(1).people # => Person.find(:all, :order => 'last_name, first_name', :conditions => { :company_id => 1 }) + + *2.2.1 [RC2] (November 14th, 2008)* * Ensure indices don't flip order in schema.rb #1266 [Jordi Bunster] |