Sha256: 02db6253f910b8294002fa7257f06821126ad33745c4c0813af3e45975f5bc5b

Contents?: true

Size: 533 Bytes

Versions: 16

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

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

      def query
        Rectify::Query.merge(
          OrganizationAssemblies.new(@organization),
          PublishedAssemblies.new,
          VisibleAssemblies.new(@user)
        ).query
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
decidim-assemblies-0.23.6 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.23.5 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.23.4 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.23.3 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.23.2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.23.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.23.1.rc1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.23.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.22.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.21.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.20.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.20.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.19.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.18.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.19.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.18.0 app/queries/decidim/assemblies/organization_published_assemblies.rb