Module: ActiveRecordAnonymizer::Extensions

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_record_anonymizer/extensions.rb

Instance Method Summary collapse

Instance Method Details

#anonymizer_anonymization_enabled?Boolean

Deliberately using anonymizer_ prefix to avoid conflicts

Returns:

  • (Boolean)


43
44
45
# File 'lib/active_record_anonymizer/extensions.rb', line 43

def anonymizer_anonymization_enabled?
  ActiveRecordAnonymizer.anonymization_enabled?
end

#anonymizer_anonymize_columnsObject

Deliberately using anonymizer_ prefix to avoid conflicts



48
49
50
# File 'lib/active_record_anonymizer/extensions.rb', line 48

def anonymizer_anonymize_columns
  AttributesAnonymizer.new(self, skip_update: ActiveRecordAnonymizer.configuration.skip_update).anonymize_columns
end