Hey !

I am trying to gem attributes to result set, and that's i have:

Index:

  ThinkingSphinx::Index.define :city, with: :active_record do
    indexes :name, sortable: true

    has country(:name), as: :country_name
    has region(:name), as: :region_name
  end

and in model added:

  attr_accessor :country_name, :region_name

as a result country_name and regions_name filled by TS result set, not by 
AR query



Is there a better way to do this ?

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to