Fix named scope + class method example

Closes #8804 [ci skip]
This commit is contained in:
Carlos Antonio da Silva 2013-01-07 21:22:43 -02:00
parent efbb041fb0
commit 8242345c43
1 changed files with 1 additions and 3 deletions

View File

@ -134,16 +134,14 @@ module ActiveRecord
# end
#
# def self.titles
# map(&:title)
# pluck(:title)
# end
#
# end
#
# We are able to call the methods like this:
#
# Article.published.featured.latest_article
# Article.featured.titles
def scope(name, body, &block)
extension = Module.new(&block) if block