diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 04:07:34 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 04:08:14 +0900 |
commit | b2e353980e40b869940bc64694d4881c63c44c15 (patch) | |
tree | 349f5580325a1c358ff848d19e3dea864f579bff /actionpack | |
parent | f23f8d1cbddbaaff750b2cdd21ed001269350adc (diff) | |
download | rails-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.rb | 8 |
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 # |