Sha256: 610a013cc310daa3aa64da5b372d570ae1fce8bf715f7955e47b7ca0d678363d
Contents?: true
Size: 393 Bytes
Versions: 25
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true module Decidim module Assemblies # This query class filters all assemblies given an organization. class OrganizationAssemblies < Decidim::Query def initialize(organization) @organization = organization end def query Decidim::Assembly.where(organization: @organization).order(weight: :asc) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems