diff options
| author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-08 14:44:45 -0700 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-08 16:14:41 -0700 |
| commit | 7056e2aa18647319eb5a5e4cce34ed2d3d3553d7 (patch) | |
| tree | 0ba84664119e5ba8350dab7022154fd6adbb334a /activemodel/lib/active_model/validations/callbacks.rb | |
| parent | b42c58636571ccbf4bfc23f89039f43e63c98211 (diff) | |
| download | rails-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 'activemodel/lib/active_model/validations/callbacks.rb')
0 files changed, 0 insertions, 0 deletions
