Created
January 16, 2010 04:23
-
-
Save spastorino/278638 to your computer and use it in GitHub Desktop.
Missings do on rdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb | |
index 6ecd506..67eb3f2 100755 | |
--- a/activerecord/lib/active_record/base.rb | |
+++ b/activerecord/lib/active_record/base.rb | |
@@ -1746,10 +1746,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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment