mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
77acc004ef
- Fixes bug #23142. - Bug was occurring only with ActionController::API, because `_process_options` wasn't being run for API requests, even though it was being run for normal app requests.
14 lines
229 B
Ruby
14 lines
229 B
Ruby
module ActionController
|
|
module ApiRendering
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
include Rendering
|
|
end
|
|
|
|
def render_to_body(options = {})
|
|
_process_options(options)
|
|
super
|
|
end
|
|
end
|
|
end
|