Sha256: 532c409923eb8753c91bae08db22f2919250f4af5c77f63b2d5f6c4288798c28

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 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

2 entries across 2 versions & 1 rubygems

Version Path
sunspot-2.7.1 spec/mocks/comment.rb
sunspot-2.7.0 spec/mocks/comment.rb