Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Model.scoped is deprecated in favour of Model.all

  • Loading branch information...
commit b2e353980e40b869940bc64694d4881c63c44c15 1 parent f23f8d1
Akira Matsuda amatsuda authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_controller/metal/streaming.rb
8 actionpack/lib/action_controller/metal/streaming.rb
View
@@ -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
#
Please sign in to comment.
Something went wrong with that request. Please try again.