Skip to content

Sinatra::IndifferentHash after calling symbolize_keys! is still using strings as keys #1423

@owyongsk

Description

@owyongsk

Seems like symbolize_keys! is a method from its parent class Hash, maybe we should raise an error when symbolize_keys! is called? This is unexpected behavior in my opinion.

Important to note that the underlying storage must still be strings based on rails/rails#14643 and Matz opinion at https://bugs.ruby-lang.org/issues/9731

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions