change uniq to distinct for SQL queries to fix deprecation

This commit is contained in:
sspsk 2017-12-16 15:39:43 +02:00
parent 2180e6197c
commit ba9d19c832
9 changed files with 9 additions and 9 deletions

View file

@ -18,7 +18,7 @@ module UsersHelper
providers << provider if !ENV["OSEM_#{provider.upcase}_KEY"].blank? && !ENV["OSEM_#{provider.upcase}_SECRET"].blank?
end
providers.uniq
providers.distinct
end
# Receives a hash, generated from User model, function get_roles