decorators & tree model
This commit is contained in:
parent
6721ef01f4
commit
4bf4efe712
12 changed files with 120 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue