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

Avoid duplication on param filter #2402

Merged
merged 5 commits into from
May 7, 2013
Merged

Conversation

victor-cruz
Copy link
Contributor

Just a little tested refactor to avoid duplication.

Víctor Manuel Cruz Dueñas and others added 4 commits July 5, 2012 19:10
conditions
end

def apply_filter_method_to_condition_keys(conditions, method, condition_keys)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to not mutate the hash inside this method. We should return a new hash and merge then in the filter method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fully agree. Thanks!

josevalim pushed a commit that referenced this pull request May 7, 2013
Avoid duplication on param filter
@josevalim josevalim merged commit cc2fea8 into heartcombo:master May 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants