You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The symbolize_names option is confusing and out of sync with the rest of the Ruby standard library. For instance, the Hash class uses symbolize_keys as a method. It seems that "name" is only used in JSON documentation (where things are referred to as "name-value" pairs instead of "key-value" pairs). This is, I believe, intended to indicate that the key has to be a string, but when dealing with Ruby parsing it is confusing to remember that only the JSON library has a different name.
Is there any way we can add an alias to the option as symbolize_keys?
The text was updated successfully, but these errors were encountered:
The
symbolize_names
option is confusing and out of sync with the rest of the Ruby standard library. For instance, theHash
class usessymbolize_keys
as a method. It seems that "name" is only used in JSON documentation (where things are referred to as "name-value" pairs instead of "key-value" pairs). This is, I believe, intended to indicate that the key has to be a string, but when dealing with Ruby parsing it is confusing to remember that only the JSON library has a different name.Is there any way we can add an alias to the option as
symbolize_keys
?The text was updated successfully, but these errors were encountered: