lib/anony/strategies/overwrite.rb
# Configure a list of fields that you don't want to anonymise.
#
# @param [Array<Symbol>] fields The fields to ignore
# @raise [ArgumentError] If trying to ignore a field which is already globally
#   ignored in Anony::Config.ignores
#
# @example
#   ignore :external_system_id, :externalised_at
Configure a list of fields that you don't want to anonymise.
Configure a list of fields that you don ' t want to anonymise .
def ignore(*fields)
        already_ignored = fields.select { |field| Config.ignore?(field) }
        if already_ignored.any?
          raise ArgumentError, "Cannot ignore #{already_ignored.inspect} " \
                               "(fields already ignored in Anony::Config)"
        end
        no_op(*fields)
      end
def ignore ( * fields ) already_ignored = fields . select { | field | Config . ignore? ( field ) } if already_ignored . any? raise ArgumentError , "Cannot ignore #{already_ignored.inspect} " "(fields already ignored in Anony::Config)" end no_op ( * fields ) end
Configure a list of fields that you don't want to anonymise.
Configure a list of fields that you don ' t want to anonymise .
[ArgumentError] If trying to ignore a field which is already globally ignored in Anony::Config.ignores
[ ArgumentError ] If trying to ignore a field which is already globally ignored in Anony :: Config . ignores
fields
<not_specific>
<not_specific>
fields The fields to ignore
fields The fields to ignore
example
ignore :external_system_id, :externalised_at
ignore : external_system_id : externalised_at