aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-08-12 17:03:06 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-08-12 17:03:06 -0700
commit08b0cf07dbc639c8609118eaeb34330d5168e8b2 (patch)
treef117c32a6e1df336286c9adca6e4102a763135a3 /actionpack/CHANGELOG
parentba2d61dd8160237b2141ae24cf20db9b5301eb9d (diff)
downloadrails-08b0cf07dbc639c8609118eaeb34330d5168e8b2.tar.gz
rails-08b0cf07dbc639c8609118eaeb34330d5168e8b2.tar.bz2
rails-08b0cf07dbc639c8609118eaeb34330d5168e8b2.zip
Update changelog for conditional GET utility methods
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG10
1 files changed, 8 insertions, 2 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 177c6a354e..6f65d4003d 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -7,8 +7,14 @@
* Update Prototype to 1.6.0.2 #599 [Patrick Joyce]
* Conditional GET utility methods. [Jeremy Kemper]
- * etag!([:admin, post, current_user]) sets the ETag response header and returns head(:not_modified) if it matches the If-None-Match request header.
- * last_modified!(post.updated_at) sets Last-Modified and returns head(:not_modified) if it's no later than If-Modified-Since.
+ response.last_modified = @post.updated_at
+ response.etag = [:admin, @post, current_user]
+
+ if request.fresh?(response)
+ head :not_modified
+ else
+ # render ...
+ end
* All 2xx requests are considered successful [Josh Peek]