Sha256: 3f6e2a7386ad955d977023ab3aa55c9385d69c77d96d99bf1df6b7430ecaf7be

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 < Rectify::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

Version Path
decidim-assemblies-0.26.10 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.9 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.8 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.7 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.5 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.4 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.3 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.2 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.1 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.0 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.0.rc2 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.26.0.rc1 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.25.2 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.25.1 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.25.0 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.25.0.rc4 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.25.0.rc3 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.25.0.rc2 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.25.0.rc1 app/queries/decidim/assemblies/organization_assemblies.rb
decidim-assemblies-0.24.3 app/queries/decidim/assemblies/organization_assemblies.rb