Remove obsolete backport from Rails 7 (#26254)

This commit is contained in:
Christian Schmidt authored and GitHub committed 2023-07-29 22:28:05 +02:00
1 parent 4d3a129212
commit d76f79f647
2 files changed
-16

No files matched your search

@@ -1,15 +0,0 @@
# frozen_string_literal: true
module ActionController
module ConditionalGetExtensions
def expires_in(*)
# This backports a fix from Rails 7 so that a more private Cache-Control
# can be overriden by calling expires_in on a specific controller action
response.cache_control.delete(:no_store)
super
end
end
end
ActionController::ConditionalGet.prepend(ActionController::ConditionalGetExtensions)