Sha256: 2ad706db6fa4a0c3c3c1e461b9fe33333d666e95993c8709bccc273631754791

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

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'},
      {: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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ultrasphinx-1.6 test/integration/app/app/models/person/user.rb