Project

General

Profile

« Previous | Next » 

Revision ff1e9ffc

Added by Dominic Cleal over 6 years ago

Fixes #20950 - Use 'distinct' in AR finders

View differences:

app/helpers/smart_proxies_helper.rb
end
def services_tab_features(proxy)
proxy.features.where('features.name NOT IN (?)', TABBED_FEATURES).uniq.pluck("name").sort
proxy.features.where('features.name NOT IN (?)', TABBED_FEATURES).distinct.pluck("name").sort
end
def tabbed_features(proxy)
proxy.features.where('features.name IN (?)', TABBED_FEATURES).uniq.pluck("name").sort
proxy.features.where('features.name IN (?)', TABBED_FEATURES).distinct.pluck("name").sort
end
def show_feature_version(feature)

Also available in: Unified diff