aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-01-16 17:22:01 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-01-16 17:22:01 -0200
commit867829b187969607aa12f2b0457f25da9c204db0 (patch)
treefd5c52b88f8f87d25a0402a148fe9ca7c7cb8dc5
parent4a2d2ef91a99602dc12acc73b20920a4382504d0 (diff)
downloadrails-867829b187969607aa12f2b0457f25da9c204db0.tar.gz
rails-867829b187969607aa12f2b0457f25da9c204db0.tar.bz2
rails-867829b187969607aa12f2b0457f25da9c204db0.zip
Missings do added to with_scope
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
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