Sha256: 1a6d2e98f44e8d14b15e902c60ddd58999aa8cdf55c0a3120f14148b01579ab5

Contents?: true

Size: 313 Bytes

Versions: 15

Compression:

Stored size: 313 Bytes

Contents

class PostWithOnlySomeAttributesTriggeringReindex < ActiveRecord::Base
  def self.table_name
    'posts'
  end

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

  searchable :only_reindex_attribute_changes_of => [ :title, :body ] do
    string :title
    text :body, :more_like_this => true
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
sunspot_rails-2.3.0 spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.8 spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot_rails-2.2.7/spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.7 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.6 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.5 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.4 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.3 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.2 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.1 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.2.0 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.1.1 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.1.0 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.0.0 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
sunspot_rails-2.0.0.pre.130115 spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb