Sha256: 9f988a2077ab256009d3376da5aabd4a75373ae4c1b28939e43706ed9e72c9fa
Contents?: true
Size: 433 Bytes
Versions: 6
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true module Decidim module Assemblies # Service that encapsulates all logic related to filtering assemblies. class AssemblySearch < ParticipatorySpaceSearch def initialize(options = {}) super(Assembly.all, options) end def search_assembly_type return query if assembly_type == "all" query.where(assembly_type: assembly_type) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems