This project is archived and is in readonly mode.
Two missing do statements found on with_scope rdoc
Reported by Santiago Pastorino | January 16th, 2010 @ 06:53 PM
I've found two missing do statements on ActiveRecord::Base with_scope rdoc.
# class Article < ActiveRecord::Base
# def self.find_with_scope
# with_scope(:find => { :conditions => "blog_id = 1", :limit => 1 }, :create => { :blog_id => 1 }) doHERE
HERE -> # with_scope(:find => { :limit => 10 })
# find(:all) # => SELECT * from articles WHERE blog_id = 1 LIMIT 10
# end
HERE -> # with_scope(:find => { :conditions => "author_id = 3" })
# find(:all) # => SELECT * from articles WHERE blog_id = 1 AND author_id = 3 LIMIT 1
# end
# end
# end
# end
Comments and changes to this ticket
-
José Valim January 16th, 2010 @ 07:10 PM
- State changed from new to wontfix
Documentation patches should be applied to http://github.com/lifo/docrails
Thanks!
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>