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:
Marius Balteanu
2025-08-10 13:27:55 +00:00
parent fb85ae763b
commit f816c78bc3

View File

@@ -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