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

Add select condition #2

Merged
merged 5 commits into from Aug 16, 2019
Merged

Add select condition #2

merged 5 commits into from Aug 16, 2019

Conversation

Kta-M
Copy link
Owner

@Kta-M Kta-M commented Aug 16, 2019

  • Refactor
  • Add select condition

ret[field.to_sym] = value.reject{|k, _| k == :val}
end
ret
def extract_params(values)
Copy link

Choose a reason for hiding this comment

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

Method extract_params has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Aug 16, 2019

Code Climate has analyzed commit 209ae16 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 100.0% (0.0% change).

View more on Code Climate.

@Kta-M Kta-M merged commit 4dedddc into master Aug 16, 2019
@Kta-M Kta-M deleted the add_select_condition branch August 16, 2019 15:21
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.

None yet

1 participant