Module: Shared::Confidences::ClassMethods

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) with_confidence_level(confidence_level)



33
34
35
# File 'app/models/concerns/shared/confidences.rb', line 33

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