Module: GdprAdmin

Defined in:
lib/gdpr_admin/version.rb,
lib/gdpr_admin.rb,
lib/gdpr_admin/error.rb,
lib/gdpr_admin/engine.rb,
lib/gdpr_admin/configuration.rb,
app/models/gdpr_admin/request.rb,
lib/gdpr_admin/skip_record_error.rb,
app/jobs/gdpr_admin/application_job.rb,
lib/gdpr_admin/helpers/erase_helper.rb,
lib/gdpr_admin/helpers/scope_helper.rb,
lib/gdpr_admin/invalid_status_error.rb,
lib/gdpr_admin/skip_data_policy_error.rb,
lib/gdpr_admin/application_data_policy.rb,
app/models/gdpr_admin/application_record.rb,
app/jobs/gdpr_admin/request_processor_job.rb,
lib/gdpr_admin/helpers/data_policy_helper.rb,
lib/gdpr_admin/helpers/paper_trail_helper.rb,
lib/gdpr_admin/anonymizers/name_anonymizer.rb,
app/models/gdpr_admin/data_retention_policy.rb,
lib/gdpr_admin/anonymizers/company_anonymizer.rb,
lib/gdpr_admin/anonymizers/contact_anonymizer.rb,
lib/gdpr_admin/anonymizers/internet_anonymizer.rb,
lib/gdpr_admin/helpers/field_anonymizer_helper.rb,
lib/gdpr_admin/paper_trail/version_data_policy.rb,
lib/gdpr_admin/tenant_adapters/acts_as_tenant_adapter.rb,
app/jobs/gdpr_admin/data_retention_policies_runner_job.rb,
app/models/concerns/gdpr_admin/data_retention_policy_concern.rb

Overview

:nocov:

Defined Under Namespace

Modules: Anonymizers, DataRetentionPolicyConcern, Helpers, PaperTrail, TenantAdapters Classes: ApplicationDataPolicy, ApplicationJob, ApplicationRecord, Configuration, DataRetentionPoliciesRunnerJob, DataRetentionPolicy, Engine, Error, InvalidStatusError, Request, RequestProcessorJob, SkipDataPolicyError, SkipRecordError

Constant Summary collapse

VERSION =
'1.9.0'

Class Method Summary collapse

Class Method Details

.configObject



26
27
28
# File 'lib/gdpr_admin.rb', line 26

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



22
23
24
# File 'lib/gdpr_admin.rb', line 22

def self.configure
  yield config
end

.load_data_policies(force: false) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/gdpr_admin.rb', line 30

def self.load_data_policies(force: false)
  return if Rails.application.config.eager_load && !force

  Dir.glob(Pathname.new(config.data_policies_path).join('**', '*.rb')).each do |file|
    require_dependency file
  end
end