diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-03-24 02:50:02 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-03-24 02:50:02 +0000 |
commit | 081ddb6f24d70794ee9e071d3ed5302f52b26c4d (patch) | |
tree | a5c8e4a4f02cd38cfb182bdaf0e8491c7a0586d4 /activerecord/CHANGELOG | |
parent | 5bf4cbbdb74dfaaac258dc93e54dcae8295211e9 (diff) | |
download | rails-081ddb6f24d70794ee9e071d3ed5302f52b26c4d.tar.gz rails-081ddb6f24d70794ee9e071d3ed5302f52b26c4d.tar.bz2 rails-081ddb6f24d70794ee9e071d3ed5302f52b26c4d.zip |
Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index b85cccc78e..96075d0d33 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,19 @@ *SVN* +* Merge the has_finder gem, renamed as 'named_scope'. #11404 [nkallen] + + class Article < ActiveRecord::Base + has_finder :published, :conditions => {:published => true} + has_finder :popular, :conditions => ... + end + + Article.published.paginate(:page => 1) + Article.published.popular.count + Article.popular.find(:first) + Article.popular.find(:all, :conditions => {...}) + + See http://pivots.pivotallabs.com/users/nick/blog/articles/284-hasfinder-it-s-now-easier-than-ever-to-create-complex-re-usable-sql-queries + * Add has_one :through support. #4756 [thechrisoshow] * Migrations: create_table supports primary_key_prefix_type. #10314 [student, thechrisoshow] |