mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
18 lines
394 B
Ruby
18 lines
394 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module ActionController
|
||
|
# Allows configuring default headers that will be automatically merged into
|
||
|
# each response.
|
||
|
module DefaultHeaders
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
module ClassMethods
|
||
|
def make_response!(request)
|
||
|
ActionDispatch::Response.create.tap do |res|
|
||
|
res.request = request
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|