Sha256: 82f945f136172cbc84a3c0d6b0ace5d2fbb7c1a9f7a5ba16b92227bf1aa067ad

Contents?: true

Size: 553 Bytes

Versions: 25

Compression:

Stored size: 553 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    # This query class filters published assemblies given an organization.
    class OrganizationPublishedAssemblies < Decidim::Query
      def initialize(organization, user = nil)
        @organization = organization
        @user = user
      end

      def query
        Decidim::Query.merge(
          OrganizationAssemblies.new(@organization),
          PublishedAssemblies.new,
          VisibleAssemblies.new(@user)
        ).query.order(weight: :asc)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-assemblies-0.29.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.28.4 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.27.9 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.29.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.28.3 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.27.8 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.29.0.rc4 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.29.0.rc3 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.29.0.rc2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.29.0.rc1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.28.2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.27.7 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.28.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.27.6 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.28.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.27.5 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.28.0.rc5 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.28.0.rc4 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.27.4 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.27.3 app/queries/decidim/assemblies/organization_published_assemblies.rb