• D
    Avoid extra calls to to_s · 2e8c8d60
    Daniel Colson 提交于
    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.
    2e8c8d60
calculations.rb 14.7 KB