Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only deep_symbolize_keys when needed #588

Merged

Commits on Dec 13, 2021

  1. Symbolize names and freeze values when loading from JSON

    JSON.load_file being defined implies that symbolize_names and freeze
    options are supported at parse time. We use this as a best effort
    feature test.
    paarthmadan committed Dec 13, 2021
    Copy the full SHA
    2ab9b37 View commit details
    Browse the repository at this point in the history
  2. Only deep_symbolize_keys when needed

    When loading certain translations from file, they can be parsed into their Symbol representation. It is wasteful to traverse the entire object graph in these cases.
    paarthmadan committed Dec 13, 2021
    Copy the full SHA
    cbca32e View commit details
    Browse the repository at this point in the history