mirror of
https://github.com/redmine/redmine.git
synced 2026-02-22 22:51:00 +01:00
Adds @no_store@ method to ActionController because Rails < 6 does not have this method (#42998).
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23910 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -156,6 +156,14 @@ module ActionController
|
||||
end
|
||||
end
|
||||
|
||||
module ActionController
|
||||
module ConditionalGet
|
||||
def no_store
|
||||
response.cache_control.replace(no_store: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Adds asset_id parameters to assets like Rails 3 to invalidate caches in browser
|
||||
module ActionView
|
||||
module Helpers
|
||||
|
||||
Reference in New Issue
Block a user