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