instance method
to_a
Ruby on Rails 3.1.12
Since v3.0.20Signature
to_a()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 180
def to_a
assign_default_content_type_and_charset!
handle_conditional_get!
@header["Set-Cookie"] = @header["Set-Cookie"].join("\n") if @header["Set-Cookie"].respond_to?(:join)
if [204, 304].include?(@status)
@header.delete "Content-Type"
[@status, @header, []]
else
[@status, @header, self]
end
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 180
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response