diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-01-16 17:22:01 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-01-16 17:22:01 -0200 |
commit | 867829b187969607aa12f2b0457f25da9c204db0 (patch) | |
tree | fd5c52b88f8f87d25a0402a148fe9ca7c7cb8dc5 /activerecord/lib | |
parent | 4a2d2ef91a99602dc12acc73b20920a4382504d0 (diff) | |
download | rails-867829b187969607aa12f2b0457f25da9c204db0.tar.gz rails-867829b187969607aa12f2b0457f25da9c204db0.tar.bz2 rails-867829b187969607aa12f2b0457f25da9c204db0.zip |
Missings do added to with_scope
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index ec7725d256..0ebcf4a3cc 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1804,10 +1804,10 @@ module ActiveRecord #:nodoc: # class Article < ActiveRecord::Base # def self.find_with_scope # with_scope(:find => { :conditions => "blog_id = 1", :limit => 1 }, :create => { :blog_id => 1 }) do - # with_scope(:find => { :limit => 10 }) + # with_scope(:find => { :limit => 10 }) do # find(:all) # => SELECT * from articles WHERE blog_id = 1 LIMIT 10 # end - # with_scope(:find => { :conditions => "author_id = 3" }) + # with_scope(:find => { :conditions => "author_id = 3" }) do # find(:all) # => SELECT * from articles WHERE blog_id = 1 AND author_id = 3 LIMIT 1 # end # end |