lib/active_median/model.rb in active_median-0.2.7 vs lib/active_median/model.rb in active_median-0.2.8

- old
+ new

@@ -65,10 +65,10 @@ else raise "Connection adapter not supported: #{connection.adapter_name}" end # same as average - relation = relation.unscope(:order).distinct!(false) if relation.group_values.empty? + relation = relation.unscope(:order).distinct!(false) if group_values.empty? result = connection.select_all(relation.to_sql) # typecast rows = []