gitter 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -68,8 +68,7 @@ module Gitter
|
|
68
68
|
|
69
69
|
def distinct_values attr
|
70
70
|
attribute = attr.to_s.split(/\./).last || attr
|
71
|
-
|
72
|
-
dv = scope.map(&:"#{attribute}").uniq
|
71
|
+
dv = scope.reorder.select(attr).uniq.map(&:"#{attribute}").uniq
|
73
72
|
dv
|
74
73
|
end
|
75
74
|
|
data/lib/gitter/version.rb
CHANGED