Sha256: bd5334aa65f958d32d1702b3fab4fe7f555a04e2ecf1dfd5ec01910661e99008
Contents?: true
Size: 400 Bytes
Versions: 31
Compression:
Stored size: 400 Bytes
Contents
module Namespaced class Comment < MockRecord attr_reader :id attr_accessor :author_name, :published_at, :body, :average_rating, :boost def custom_string @custom_string ||= {} end end end Sunspot.setup(Namespaced::Comment) do text :body, :author_name string :author_name time :published_at integer :average_rating dynamic_string :custom_string boost :boost end
Version data entries
31 entries across 31 versions & 8 rubygems