instance method
response_body=
Ruby on Rails 7.2.3
Since v3.0.20Signature
response_body=(body)
No documentation comment.
Parameters
-
bodyreq
Source
# File actionpack/lib/action_controller/metal.rb, line 234
def response_body=(body)
if body
body = [body] if body.is_a?(String)
response.body = body
super
else
response.reset_body!
end
end
Defined in actionpack/lib/action_controller/metal.rb line 234
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Metal