Class: Decidim::Meetings::Directory::MeetingSearch

Inherits:
MeetingSearch
  • Object
show all
Defined in:
app/services/decidim/meetings/directory/meeting_search.rb

Instance Method Summary collapse

Methods inherited from MeetingSearch

#initialize, #results, #search_activity, #search_date, #search_state, #search_type

Constructor Details

This class inherits a constructor from Decidim::Meetings::MeetingSearch

Instance Method Details

#search_spaceObject



9
10
11
12
13
# File 'app/services/decidim/meetings/directory/meeting_search.rb', line 9

def search_space
  return query if options[:space].blank? || options[:space] == "all"

  query.joins(:component).where(decidim_components: { participatory_space_type: options[:space].collect(&:classify) })
end