Permalink
Browse files

Model.scoped is deprecated in favour of Model.all

  • Loading branch information...
1 parent f23f8d1 commit b2e353980e40b869940bc64694d4881c63c44c15 @amatsuda amatsuda committed Jan 1, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_controller/metal/streaming.rb
@@ -26,7 +26,7 @@ module ActionController #:nodoc:
#
# class PostsController
# def index
- # @posts = Post.scoped
+ # @posts = Post.all
# render stream: true
# end
# end
@@ -51,9 +51,9 @@ module ActionController #:nodoc:
#
# def dashboard
# # Allow lazy execution of the queries
- # @posts = Post.scoped
- # @pages = Page.scoped
- # @articles = Article.scoped
+ # @posts = Post.all
+ # @pages = Page.all
+ # @articles = Article.all
# render stream: true
# end
#

0 comments on commit b2e3539

Please sign in to comment.