decorators & tree model

This commit is contained in:
Dmitriy Zaporozhets 2011-11-20 22:32:12 +02:00
parent 6721ef01f4
commit 4bf4efe712
12 changed files with 120 additions and 29 deletions

View file

@ -84,4 +84,10 @@ class ApplicationController < ActionController::Base
nil
end
end
def no_cache_headers
response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
end
end