Sha256: a7593452aa3a3d84d74020a7fa02d311976eaa4463d232c1e681824c23dd174d

Contents?: true

Size: 304 Bytes

Versions: 19

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true

module ForemanWebhooks
  module TaxonomyExtensions
    extend ActiveSupport::Concern

    included do
      has_many :webhook_templates, -> { where(type: 'WebhookTemplate') }, through: :taxable_taxonomies, source: :taxable, source_type: 'WebhookTemplate'
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
foreman_webhooks-4.0.0 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.2.3 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.2.2 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.1.1 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.2.1 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.2.0 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.1.0 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.0.5 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-2.0.3 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.0.4 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-2.0.2 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.0.3 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.0.2 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.0.1 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-2.0.1 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-3.0.0 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-2.0.0 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-1.1.0 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb
foreman_webhooks-1.0.0 app/models/concerns/foreman_webhooks/taxonomy_extensions.rb