Sha256: 2d6b32502db047e226e757ad40fd71671713b484696b4789d285c71088de353b

Contents?: true

Size: 228 Bytes

Versions: 4

Compression:

Stored size: 228 Bytes

Contents

module Locomotive::Search::SearchableContentField

  extend ActiveSupport::Concern

  included do
    field :searchable, default: false
  end

  def to_params
    super.merge({
      searchable: self.searchable
    })
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 lib/locomotive/search/wagon/searchable_content_field.rb
locomotivecms-search-0.3.5 lib/locomotive/search/wagon/searchable_content_field.rb
locomotivecms-search-0.3.4 lib/locomotive/search/wagon/searchable_content_field.rb
locomotivecms-search-0.3.3 lib/locomotive/search/wagon/searchable_content_field.rb