Module: Shared::Confidence::ClassMethods

Defined in:
app/models/concerns/shared/confidence.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) with_confidence_level(confidence_level)



31
32
33
# File 'app/models/concerns/shared/confidence.rb', line 31

def with_confidence_level(confidence_level)
  joins(:confidence_levels).where(confidences: {confidence_level: confidence_level})
end