method

to_ary

Importance_1
v4.2.1 - Show latest stable - 0 notes - Class: ActionDispatch::Response
to_ary() public

Be super clear that a response object is not an Array. Defining this would make implicit splatting work, but it also makes adding responses as arrays work, and “flattening” responses, cascading to the rack body! Not sensible behavior.

Show source
Register or log in to add new notes.