Module: Deidentify::ClassMethods
- Defined in:
- lib/deidentify.rb
Instance Method Summary collapse
Instance Method Details
#deidentify(column, method:, **options) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/deidentify.rb', line 48 def deidentify(column, method:, **) unless POLICY_MAP.keys.include?(method) || method.respond_to?(:call) raise Deidentify::Error, 'you must specify a valid deidentification method' end deidentify_configuration[column] = [method, ] end |
#deidentify_associations(*associations) ⇒ Object
56 57 58 |
# File 'lib/deidentify.rb', line 56 def deidentify_associations(*associations) self.associations_to_deidentify += associations end |