lib/thinking_sphinx/property.rb in warp-thinking-sphinx-1.3.13 vs lib/thinking_sphinx/property.rb in warp-thinking-sphinx-1.3.16

- old
+ new

@@ -135,11 +135,17 @@ else associations[column].collect { |assoc| assoc.has_column?(column.__name) ? "#{quote_with_table(assoc.join.aliased_table_name, column.__name)}" : nil - }.compact.join(', ') + }.compact end + end + + def columns_with_prefixes + @columns.collect { |column| + column_with_prefix column + }.flatten end # Gets a stack of associations for a specific path. # def association_stack(path, parent = nil)