I've found an answer :-)
class Child < ActiveRecord::Base
belongs_to :sub_parent
define_index do
indexes :title
has sub_parent.parent.project_id, :type => :integer, :as
=> :project_id
end
end
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---