Sha256: 68fbf5d8ac0e11b8e6260658eabf1b2bffce27461ad064893e7f0ef15b9baf32
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
require 'active_support/concern' module Georgia module Indexer module SolrAdapter module ActsAsTaggableOnTagExtension extend ActiveSupport::Concern included do searchable do text :name end def self.search_index model, params ActsAsTaggableOn::Tag.search do fulltext params[:q] do fields(:name) end paginate(page: 1, per_page: 10) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.7.8 | lib/georgia/indexer/extensions/solr_adapter/acts_as_taggable_on/tag.rb |