Sha256: 4818046d1830dbf3f34b596eff3e0a8e83168658702b04634afeb07141891784

Contents?: true

Size: 533 Bytes

Versions: 22

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),
          VisibleAssemblies.new(@user),
          PublishedAssemblies.new
        ).query
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
decidim-assemblies-0.17.2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.17.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.16.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.17.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.16.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.15.2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.15.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.15.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.14.4 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.14.3 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.14.2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.14.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.13.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.12.2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.13.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.12.1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.13.0.pre1 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.12.0 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.11.2 app/queries/decidim/assemblies/organization_published_assemblies.rb
decidim-assemblies-0.12.0.pre app/queries/decidim/assemblies/organization_published_assemblies.rb