# File lib/thinking_sphinx/active_record/property_query.rb, line 8 def to_s if unsafe_habtm_column? raise "Source queries cannot be used with HABTM joins if they use anything beyond the\nprimary key.\n" end if safe_habtm_column? ThinkingSphinx::ActiveRecord::SimpleManyQuery.new( property, source, type ).to_s else "#{identifier} from #{source_type}; #{queries.join('; ')}" end end