Sha256: adee7495c49b1c642a2fb94070037cbac51d3614e1477108fe9f5a5e50d23df4
Contents?: true
Size: 664 Bytes
Versions: 62
Compression:
Stored size: 664 Bytes
Contents
module Workarea module Insights class PopularSearches < Base class << self def dashboards %w(search) end def generate_monthly! results = generate_results create!(results: results) if results.present? end def generate_results report.results.take(Workarea.config.insights_searches_list_max_results) end def report Reports::Searches.new( starts_at: beginning_of_last_month, ends_at: end_of_last_month, sort_by: 'searches', sort_direction: 'desc' ) end end end end end
Version data entries
62 entries across 62 versions & 1 rubygems