Sha256: 5895c3c508e4a83332b561e7cc19560f22cee4a906d0bc4a1022ff4bf9cc6bc6

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module NavigationMaps
    # This query finds the published blueprints for and organization
    class OrganizationBlueprints < Rectify::Query
      def initialize(organization)
        @organization = organization
      end

      def query
        Decidim::NavigationMaps::Blueprint.where(organization: @organization)
      end

      private

      attr_reader :organization
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-navigation_maps-1.3.4 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.3.3 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.3.2 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.3.1 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.3.0 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.2.0 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.1.1 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.1.0 app/queries/decidim/navigation_maps/organization_blueprints.rb
decidim-navigation_maps-1.0.1 app/queries/decidim/navigation_maps/organization_blueprints.rb