osunyorg/admin

View on GitHub
app/services/faceted_search/facets/text.rb

Summary

Maintainability
A
0 mins
Test Coverage
module FacetedSearch
  class Facets::Text < Facets::Default
    include ActiveRecord::Sanitization

    def placeholder
      @options[:placeholder]
    end

    def add_scope(scope)
      return scope if params.blank?
      language = facets.language
      scope.for_search_term(params, language)
    end
  end
end