lib/ofac/models/ofac_sdn.rb in ofac-2.0.0 vs lib/ofac/models/ofac_sdn.rb in ofac-2.0.1

- old
+ new

@@ -17,9 +17,9 @@ name_conditions = name_conditions.join(' and ') alt_name_conditions = alt_name_conditions.join(' and ') conditions = "(#{name_conditions}) or (#{alt_name_conditions})" end # we need the values in there twice, once for the names and once for the alt_names - OfacSdn.select(:name, :alternate_identity_name, :address, :city).where(sdn_type: 'individual').where(conditions, *(values * 2)) + OfacSdn.select([:name, :alternate_identity_name, :address, :city]).where(sdn_type: 'individual').where(conditions, *(values * 2)) end end