aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-02-12 09:47:56 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-02-12 09:47:56 +0100
commit22934e02c2790cb0425b925adeef03ca0ff595fa (patch)
treeb29d5e7827791b62a46ad9d4e57cdeaea014600a /actionpack
parent6201e62cc49720e9133759e9a19fd1cc11ab73e1 (diff)
parent697688663fccd1ef38413cdeec6957fe8ba7f94f (diff)
downloadrails-22934e02c2790cb0425b925adeef03ca0ff595fa.tar.gz
rails-22934e02c2790cb0425b925adeef03ca0ff595fa.tar.bz2
rails-22934e02c2790cb0425b925adeef03ca0ff595fa.zip
Merge pull request #18911 from y-yagi/fix-typo
fix typo in fresh_when example [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/CHANGELOG.md6
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