Sha256: 63aa3ad3ae84772bcfe7f696a4873b3530dc1eaa4493df9e37ac823f312c6cdd

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

class Seller < ActiveRecord::Base
  belongs_to :user  
  delegate :address, :to => :user
  
  is_indexed :fields => [
    {:field => 'company_name', :facet => true},
    {:field => 'mission_statement', :sortable => true},
    'created_at', 
    'capitalization', 
    'user_id'
  ]
  
  def name 
    company_name
  end
  
  def metadata
    "sfdkjl fsdjkl sdfjl fdsjk #{company_name} " * 5
  end  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ultrasphinx-1.5.3 test/integration/app/app/models/seller.rb
ultrasphinx-1.6.7 test/integration/app/app/models/seller.rb
ultrasphinx-1.6 test/integration/app/app/models/seller.rb
ultrasphinx-1.8 test/integration/app/app/models/seller.rb
ultrasphinx-1.7 test/integration/app/app/models/seller.rb