ConsorciAOC-PRJ/decidim-module-trusted-ids

View on GitHub
app/models/concerns/decidim/trusted_ids/organization_override.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Decidim
  module TrustedIds
    module OrganizationOverride
      extend ActiveSupport::Concern

      included do
        has_one :trusted_ids_census_config,
                foreign_key: "decidim_organization_id",
                class_name: "Decidim::TrustedIds::OrganizationConfig",
                inverse_of: :organization,
                dependent: :destroy
      end
    end
  end
end