Methods
Instance Public methods
distinct_content_search_scope(model) Link
Source: show
# File engines/member/app/actions/member/content_search/scope/distinct_content_search.rb, line 5 def distinct_content_search_scope(model) model_table = model.arel_table content_in_period_scope(model) .unscope(:group).unscope(:order) .select(model_table[Arel.star]) .group(model_table[:id]) .joins(to_site_settings(model)) .where(site_in_time_zones) end