Sha256: 47e4c429a344e0ee6ac3c9e1e6bd83e497b6aac5961dbc914838a9e5db8708da

Contents?: true

Size: 310 Bytes

Versions: 13

Compression:

Stored size: 310 Bytes

Contents

class Post < ActiveRecord::Base
  belongs_to :location
  belongs_to :author
  has_many :comments

  attr_accessible :title, :type, :location_id, :body, :blog

  searchable :auto_index => false, :auto_remove => false do
    string :title
    text :body, :more_like_this => true
    location :location
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
sunspot_rails-2.2.3 spec/rails_template/app/models/post.rb
sunspot_rails-2.2.2 spec/rails_template/app/models/post.rb
sunspot_rails-2.2.1 spec/rails_template/app/models/post.rb
sunspot_rails-2.2.0 spec/rails_template/app/models/post.rb
sunspot_rails-2.1.1 spec/rails_template/app/models/post.rb
sunspot_rails-2.1.0 spec/rails_template/app/models/post.rb
sunspot_rails-2.0.0 spec/rails_template/app/models/post.rb
sunspot_rails-2.0.0.pre.130115 spec/rails_template/app/models/post.rb
sunspot_rails-2.0.0.pre.120925 spec/rails_template/app/models/post.rb
sunspot_solr-2.0.0.pre.120924 sunspot_rails/spec/rails_template/app/models/post.rb
sunspot_rails-2.0.0.pre.120924 sunspot_rails/spec/rails_template/app/models/post.rb
sunspot-2.0.0.pre.120924 sunspot_rails/spec/rails_template/app/models/post.rb
sunspot_rails-2.0.0.pre.120720 spec/rails_template/app/models/post.rb