Sha256: fdbd4a6119e8c568e84bddb341c3d8d4701a1da653a254790b7c2949c1293f1a

Contents?: true

Size: 301 Bytes

Versions: 38

Compression:

Stored size: 301 Bytes

Contents

class Blog < ActiveRecord::Base
  has_many :posts
  has_many :comments, :through => :posts

  searchable :include => { :posts => :author } do
    string :subdomain
    text :name
  end

  # Make sure that includes are added to with multiple searchable calls
  searchable(:include => :comments) {}
end

Version data entries

38 entries across 37 versions & 10 rubygems

Version Path
sunspot_rails-2.7.1 spec/rails_app/app/models/blog.rb
sunspot_rails-2.7.0 spec/rails_app/app/models/blog.rb
sunspot_rails-2.6.0 spec/rails_app/app/models/blog.rb
sunspot_rails-2.5.0 spec/rails_app/app/models/blog.rb
sunspot_rails-2.4.0 spec/rails_app/app/models/blog.rb
substantial-sunspot_rails-2.0.0.pre.111215 spec/rails_template/app/models/blog.rb
gojee-sunspot-rails-2.0.5 spec/rails_template/app/models/blog.rb
gojee-sunspot-rails-2.0.4 spec/rails_template/app/models/blog.rb
gojee-sunspot-rails-2.0.2 spec/rails_template/app/models/blog.rb
sunspot_rails-1.3.3 spec/rails_template/app/models/blog.rb
sunspot_rails-1.3.2 spec/rails_template/app/models/blog.rb
sunspot_rails-2.0.0.pre.120417 spec/rails_template/app/models/blog.rb
sunspot_rails-2.0.0.pre.120415 spec/rails_template/app/models/blog.rb
sunspot_rails-1.3.1 spec/rails_template/app/models/blog.rb
erichummel-sunspot_rails-2.0.0.pre.111215d spec/rails_template/app/models/blog.rb
erichummel-sunspot_rails-2.0.0.pre.111215c spec/rails_template/app/models/blog.rb
erichummel-sunspot_rails-2.0.0.pre.111215b spec/rails_template/app/models/blog.rb
erichummel-sunspot_rails-2.0.0.pre.111215a spec/rails_template/app/models/blog.rb
erichummel-sunspot_rails-2.0.0.pre.111215 spec/rails_template/app/models/blog.rb
sunspot_rails-2.0.0.pre.111215 spec/rails_template/app/models/blog.rb