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

Use reject instead of delete_if to prevent mutation #460

Merged
merged 1 commit into from
Feb 3, 2016
Merged

Use reject instead of delete_if to prevent mutation #460

merged 1 commit into from
Feb 3, 2016

Conversation

mikeastock
Copy link
Contributor

Solves #459. Hash#reject returns a new hash instead of mutating. http://ruby-doc.org/core-2.2.0/Hash.html#method-i-reject

Solves #459. Reject returns
a new hash instead of mutating.
@tibbon
Copy link

tibbon commented Feb 1, 2016

This looks great. yay!

jnunemaker pushed a commit that referenced this pull request Feb 3, 2016
Use reject instead of delete_if to prevent mutation
@jnunemaker jnunemaker merged commit 1f8ed48 into jnunemaker:master Feb 3, 2016
@mikeastock mikeastock deleted the do-not-mutate-cookie-hash branch February 3, 2016 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants