lib/anony/model_config.rb
# Prevent any anonymisation strategy being applied when the provided block evaluates
# to true. The block is executed in the model context.
#
# @example
#   anonymise do
#     skip_if { !persisted? }
#   end
Prevent any anonymisation strategy being applied when the provided block evaluates
to true. The block is executed in the model context.
Prevent any anonymisation strategy being applied when the provided block evaluates to true . The block is executed in the model context .
def skip_if(&if_condition)
      raise ArgumentError, "Block required for :skip_if" unless if_condition
      @skip_filter = if_condition
    end
def skip_if ( & if_condition ) raise ArgumentError , "Block required for :skip_if" unless if_condition @skip_filter = if_condition end
Prevent any anonymisation strategy being applied when the provided block evaluates
to true.
Prevent any anonymisation strategy being applied when the provided block evaluates to true .
if_condition
<not_specific>
example
anonymise do skip_if { !persisted. } end
anonymise do skip_if { !persisted . } end