diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-02-12 16:54:01 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-02-12 16:54:01 +0900 |
commit | 697688663fccd1ef38413cdeec6957fe8ba7f94f (patch) | |
tree | bdee440a0fc77e480bcefec07b0d7744f143c8ac /actionpack | |
parent | debe7aedda3665702d1f99a3ffb4a123a6c44e9c (diff) | |
download | rails-697688663fccd1ef38413cdeec6957fe8ba7f94f.tar.gz rails-697688663fccd1ef38413cdeec6957fe8ba7f94f.tar.bz2 rails-697688663fccd1ef38413cdeec6957fe8ba7f94f.zip |
fix typo in fresh_when example [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 6b2373d0a2..220946329b 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -4,13 +4,13 @@ # Before def index - @article = Article.all - fresh_when(etag: @articles, last_modified: @articles.maximum(:created_at)) + @articles = Article.all + fresh_when(etag: @articles, last_modified: @articles.maximum(:updated_at)) end # After def index - @article = Article.all + @articles = Article.all fresh_when(@articles) end |