test/integration/app/app/models/person/user.rb in ultrasphinx-1.5.3 vs test/integration/app/app/models/person/user.rb in ultrasphinx-1.6

- old
+ new

@@ -1,9 +1,10 @@ class User < ActiveRecord::Base has_one :seller has_one :address, :class_name => "Geo::Address" is_indexed :fields => ['login', 'email', 'deleted'], - :include => [{:class_name => 'Seller', :field => 'company_name', :as => 'company'}], + :include => [{:class_name => 'Seller', :field => 'company_name', :as => 'company'}, + {:class_name => 'Seller', :field => 'sellers_two.company_name', :as => 'company_two', 'association_sql' => 'LEFT OUTER JOIN sellers AS sellers_two ON users.id = sellers_two.user_id', 'function_sql' => "REPLACE(?, '6', ' replacement ')"}], :conditions => 'deleted = 0' end