-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
hash.slice will crash if keep_key is not in the original hash #291
Comments
brettcave
added a commit
to brettcave/i18n
that referenced
this issue
Oct 1, 2014
brettcave
added a commit
to brettcave/i18n
that referenced
this issue
Oct 1, 2014
brettcave
added a commit
to brettcave/i18n
that referenced
this issue
Oct 1, 2014
brettcave
added a commit
to brettcave/i18n
that referenced
this issue
Oct 1, 2014
I believe this was fixed with #289 and can be closed. |
Thanks. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
lib/i18n/core_ext/hash.rb#L4 will crash if
:some_key
is inkeep_keys
but not in the hash.A safe way to allow keep_keys to be passed to the slice function that are not in the hash is to add a if has_key?(key):
The text was updated successfully, but these errors were encountered: