lib/pg_search/configuration/column.rb in pg_search-0.2.2 vs lib/pg_search/configuration/column.rb in pg_search-0.3
- old
+ new
@@ -32,11 +32,10 @@
def foreign?
@association.present?
end
def alias
- name = [association.subselect_alias, @column_name].compact.join('_')
- "pg_search_#{Digest::SHA2.hexdigest(name)}"
+ Configuration.alias(association.subselect_alias, @column_name)
end
end
end
end