Sha256: 67588ac8757251d05f4a82a858ef337f913f7e93957b46cbe79fe1d929d4b4c9
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
require 'activesearch/algolia' class AlgoliaModel < ActiveMimic include ActiveSearch::Algolia attribute :title attribute :text attribute :junk attribute :special, default: false search_by [:title, :text, store: [:title, :junk]], if: lambda { !self.special } end class AnotherAlgoliaModel < ActiveMimic include ActiveSearch::Algolia attribute :title, type: String search_by [:title, store: [:title, :virtual]] def virtual "virtual" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activesearch-0.0.13 | spec/models/algolia.rb |