Sha256: 73be75e6493d9308813f89c22d9bcdd8ae32f9fdaf6b452053f0f772c54db068
Contents?: true
Size: 670 Bytes
Versions: 36
Compression:
Stored size: 670 Bytes
Contents
module Workarea module Search class Admin class PricingDiscount < Search::Admin include Admin::Releasable def type 'discount' end def search_text "discount #{model.name}" end def jump_to_text model.name end def jump_to_position 9 end def keywords super + model.promo_codes end def facets super.merge(discount_type: model.class.name.demodulize.titleize) end def as_document super.merge(total_redemptions: model.redemptions.count) end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems