aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/uuid_child.rb
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2016-01-26 19:15:09 -0500
committereileencodes <eileencodes@gmail.com>2016-01-30 09:42:59 -0500
commitc4d85dfbc71043e2a746acd310e32f4f04db801a (patch)
tree161068d34bce60413e1cf045080ebd9a02ce45b0 /activerecord/test/models/uuid_child.rb
parent6162c49e40582bf058a6bb82ccc0cfb8f92332b6 (diff)
downloadrails-c4d85dfbc71043e2a746acd310e32f4f04db801a.tar.gz
rails-c4d85dfbc71043e2a746acd310e32f4f04db801a.tar.bz2
rails-c4d85dfbc71043e2a746acd310e32f4f04db801a.zip
Handle response_body= when body is nil
There are some cases when the `body` in `response_body=` can be set to nil. One of those cases is in `actionpack-action_caching` which I found while upgrading it for Rails 5. It's not possible to run `body.each` on a `nil` body so we have to return after we run `response.reset_body!`.
Diffstat (limited to 'activerecord/test/models/uuid_child.rb')
0 files changed, 0 insertions, 0 deletions