Sha256: b0e89e97094035781e363830a39a007c21e6d495da4fdf0245ef84c2c713052b
Contents?: true
Size: 495 Bytes
Versions: 6
Compression:
Stored size: 495 Bytes
Contents
module Workarea module Search class AdminBlogEntries include Query include AdminIndexSearch include AdminSorting include Pagination document Search::Admin def initialize(params = {}) super(params.merge(type: 'blog_entry')) end def facets super + [TermsFacet.new(self, 'blog_id')] end def displayed_facets facets.reject { |facet| facet.useless? || facet.name == 'blog_id' } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems