Skip to content

Commit

Permalink
Merge pull request #7480 from aaronbrethorst/master
Browse files Browse the repository at this point in the history
Fix markdown rendering of the ActionPack changelog [ci skip]
  • Loading branch information
carlosantoniodasilva committed Aug 29, 2012
2 parents 0093daf + ee2da01 commit d4b8052
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions actionpack/CHANGELOG.md
Expand Up @@ -2,15 +2,15 @@

* Added controller-level etag additions that will be part of the action etag computation *Jeremy Kemper/DHH*

class InvoicesController < ApplicationController
etag { current_user.try :id }

def show
# Etag will differ even for the same invoice when it's viewed by a different current_user
@invoice = Invoice.find(params[:id])
fresh_when(@invoice)
class InvoicesController < ApplicationController
etag { current_user.try :id }

def show
# Etag will differ even for the same invoice when it's viewed by a different current_user
@invoice = Invoice.find(params[:id])
fresh_when(@invoice)
end
end
end

* Add automatic template digests to all CacheHelper#cache calls (originally spiked in the cache_digests plugin) *DHH*

Expand Down

0 comments on commit d4b8052

Please sign in to comment.