aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/response_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-09-08 14:44:45 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-09-08 16:14:41 -0700
commit7056e2aa18647319eb5a5e4cce34ed2d3d3553d7 (patch)
tree0ba84664119e5ba8350dab7022154fd6adbb334a /actionpack/test/dispatch/response_test.rb
parentb42c58636571ccbf4bfc23f89039f43e63c98211 (diff)
downloadrails-7056e2aa18647319eb5a5e4cce34ed2d3d3553d7.tar.gz
rails-7056e2aa18647319eb5a5e4cce34ed2d3d3553d7.tar.bz2
rails-7056e2aa18647319eb5a5e4cce34ed2d3d3553d7.zip
avoid useless string allocations
_set_content_type only does something when there is a request object, otherwise the return value of _get_content_type is always ignored. This commit moves everything to the module that has access to the request object so we'll never to_s unless there is a reason
Diffstat (limited to 'actionpack/test/dispatch/response_test.rb')
0 files changed, 0 insertions, 0 deletions