Sha256: fc39b33e7d538331026f4646e5da0de3d211d920cce88bb3f4cca328851a071d

Contents?: true

Size: 467 Bytes

Versions: 64

Compression:

Stored size: 467 Bytes

Contents

module Namespaced
  class Comment < MockRecord
    attr_reader :id
    attr_accessor :author_name, :published_at, :body, :average_rating, :boost,
                  :hash

    def custom_float
      @custom_float ||= {}
    end
  end
end

Sunspot.setup(Namespaced::Comment) do
  text :body, :author_name
  string :author_name
  time :published_at, :trie => true
  long :hash
  double :average_rating
  dynamic_float :custom_float, :multiple => true
  boost :boost
end

Version data entries

64 entries across 64 versions & 13 rubygems

Version Path
sunspot-2.6.0 spec/mocks/comment.rb
sunspot-2.5.0 spec/mocks/comment.rb
sunspot-2.4.0 spec/mocks/comment.rb
sunspot-2.3.0 spec/mocks/comment.rb
sunspot-2.2.8 spec/mocks/comment.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot-2.2.7/spec/mocks/comment.rb
sunspot-2.2.7 spec/mocks/comment.rb
sunspot-2.2.6 spec/mocks/comment.rb
sunspot-2.2.5 spec/mocks/comment.rb
sunspot-2.2.4 spec/mocks/comment.rb
sunspot-2.2.3 spec/mocks/comment.rb
sunspot-2.2.2 spec/mocks/comment.rb
sunspot-2.2.1 spec/mocks/comment.rb
sunspot-2.2.0 spec/mocks/comment.rb
sunspot-2.1.1 spec/mocks/comment.rb
sunspot-2.1.0 spec/mocks/comment.rb
sunspot_suggest-0.0.3 spec/mocks/comment.rb
sunspot_suggest-0.0.2 spec/mocks/comment.rb
sunspot_suggest-0.0.1 spec/mocks/comment.rb
sunspot-2.0.0 spec/mocks/comment.rb