diff options
author | Daniel Colson <danieljamescolson@gmail.com> | 2018-01-29 07:22:42 -0500 |
---|---|---|
committer | Daniel Colson <danieljamescolson@gmail.com> | 2018-01-29 07:22:42 -0500 |
commit | 2e8c8d60e7568f9fb82fbed26d86c45d3cf82232 (patch) | |
tree | 908fcb1c16474887a4f49985754b1be4e20c603f /activerecord/test/cases/migration/references_index_test.rb | |
parent | bee764965e80b0f4f0a15c31b340f245779a7d89 (diff) | |
download | rails-2e8c8d60e7568f9fb82fbed26d86c45d3cf82232.tar.gz rails-2e8c8d60e7568f9fb82fbed26d86c45d3cf82232.tar.bz2 rails-2e8c8d60e7568f9fb82fbed26d86c45d3cf82232.zip |
Avoid extra calls to to_s
With #31615 `type_for_attribute` accepts either
a symbol as well as a string. `has_attribute?` and `attribute_alias`
also accept either. Since these methods call `to_s` on the argument,
we no longer need to do that at the call site.
Diffstat (limited to 'activerecord/test/cases/migration/references_index_test.rb')
0 files changed, 0 insertions, 0 deletions