Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Two missing do statements found on with_scope rdoc

#3713

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

Reported by Santiago Pastorino · January 16th, 2010 @ 06:53 PM

State: wontfix
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. José Valim
    José Valim
    • State changed from new to wontfix

    Documentation patches should be applied to http://github.com/lifo/docrails
    Thanks!

    January 16th, 2010 @ 07:10 PM