Module: WeightedAverage::ActiveRecordBaseClassMethods

Defined in:
lib/weighted_average/active_record_base_class_methods.rb

Instance Method Summary collapse

Instance Method Details

#weighted_average(*args) ⇒ Float?



6
7
8
# File 'lib/weighted_average/active_record_base_class_methods.rb', line 6

def weighted_average(*args)
  scoped.weighted_average(*args)
end

#weighted_average_relation(*args) ⇒ Arel::SelectManager



13
14
15
# File 'lib/weighted_average/active_record_base_class_methods.rb', line 13

def weighted_average_relation(*args)
  scoped.weighted_average_relation(*args)
end