Class: Workarea::Insights::PopularSearches
- Defined in:
- app/models/workarea/insights/popular_searches.rb
Class Method Summary collapse
Methods inherited from Base
beginning_of_last_month, current, end_of_last_month, generate_daily!, generate_weekly!, #include?, #slug
Methods included from ApplicationDocument
Methods included from Sidekiq::Callbacks
add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list
Methods included from Mongoid::Document
Class Method Details
.dashboards ⇒ Object
5 6 7 |
# File 'app/models/workarea/insights/popular_searches.rb', line 5 def dashboards %w(search) end |
.generate_monthly! ⇒ Object
9 10 11 12 |
# File 'app/models/workarea/insights/popular_searches.rb', line 9 def generate_monthly! results = generate_results create!(results: results) if results.present? end |