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 customizable precision #9

Merged
merged 3 commits into from Jun 14, 2016
Merged

Add customizable precision #9

merged 3 commits into from Jun 14, 2016

Conversation

trobrock
Copy link
Contributor

@@ -3,7 +3,7 @@ module Model
extend ActiveSupport::Concern

class_methods do
def weighable(column, presence: false, store_as: :gram)
def weighable(column, presence: false, store_as: :gram, precision: nil)

Choose a reason for hiding this comment

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

Cyclomatic complexity for weighable is too high. [8/6]

@andrewkatz
Copy link
Contributor

👍

@trobrock trobrock merged commit 769bdc0 into master Jun 14, 2016
@trobrock trobrock deleted the precision branch June 14, 2016 20:03
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

3 participants