Module: Shared::Confidences::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#with_confidence_level(confidence_level) ⇒ Object



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:})
end