Skip to content
  • Daniel Colson's avatar
    2e8c8d60
    Avoid extra calls to to_s · 2e8c8d60
    Daniel Colson authored
    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
    Avoid extra calls to to_s
    Daniel Colson authored
    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.
Loading