Skip to content
  • Ryuta Kamizono's avatar
    c53c418e
    `has_attribute?` should be aware of attribute aliases · c53c418e
    Ryuta Kamizono authored
    Related to #39495.
    
    For now, `read_attribute`, `write_attribute`, `[]`, `[]=` are aware of
    attribute aliases, but `has_attribute?` is not. It will easily miss
    attribute alias resolution before using `has_attribute?`, it is very
    inconvenient.
    
    I think the inconvenience is not intended, so `has_attribute?` should be
    aware of attribute aliases like as others for consistency.
    c53c418e
    `has_attribute?` should be aware of attribute aliases
    Ryuta Kamizono authored
    Related to #39495.
    
    For now, `read_attribute`, `write_attribute`, `[]`, `[]=` are aware of
    attribute aliases, but `has_attribute?` is not. It will easily miss
    attribute alias resolution before using `has_attribute?`, it is very
    inconvenient.
    
    I think the inconvenience is not intended, so `has_attribute?` should be
    aware of attribute aliases like as others for consistency.
Loading