Skip to content

Use reject instead of delete_if to prevent mutation - #460

Merged
jnunemaker merged 1 commit into
jnunemaker:masterfrom
mikeastock:do-not-mutate-cookie-hash
Feb 3, 2016
Merged

Use reject instead of delete_if to prevent mutation#460
jnunemaker merged 1 commit into
jnunemaker:masterfrom
mikeastock:do-not-mutate-cookie-hash

Conversation

@mikeastock

Copy link
Copy Markdown
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

tibbon commented Feb 1, 2016

Copy link
Copy Markdown

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