aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-02 04:07:34 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-02 04:08:14 +0900
commitb2e353980e40b869940bc64694d4881c63c44c15 (patch)
tree349f5580325a1c358ff848d19e3dea864f579bff /actionpack
parentf23f8d1cbddbaaff750b2cdd21ed001269350adc (diff)
downloadrails-b2e353980e40b869940bc64694d4881c63c44c15.tar.gz
rails-b2e353980e40b869940bc64694d4881c63c44c15.tar.bz2
rails-b2e353980e40b869940bc64694d4881c63c44c15.zip
Model.scoped is deprecated in favour of Model.all
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/streaming.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/streaming.rb b/actionpack/lib/action_controller/metal/streaming.rb
index 0b3c438ec2..73e9b5660d 100644
--- a/actionpack/lib/action_controller/metal/streaming.rb
+++ b/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
#