lib/anony/model_config.rb
# Use the deletion strategy instead of anonymising individual fields. This method is
# incompatible with the fields strategy.
#
# This method takes no arguments or blocks.
#
# @example
#   anonymise do
#     destroy
#   end
Use the deletion strategy instead of anonymising individual fields. This method is
incompatible with the fields strategy.

This method takes no arguments or blocks.
Use the deletion strategy instead of anonymising individual fields . This method is incompatible with the fields strategy . This method takes no arguments or blocks .
def destroy
      raise ArgumentError, ":destroy takes no block" if block_given?
      unless @strategy.is_a?(UndefinedStrategy)
        raise ArgumentError, "Cannot specify :destroy when another strategy already defined"
      end
      @strategy = Strategies::Destroy.new
    end
def destroy raise ArgumentError , ":destroy takes no block" if block_given? unless @strategy . is_a? ( UndefinedStrategy ) raise ArgumentError , "Cannot specify :destroy when another strategy already defined" end @strategy = Strategies :: Destroy . new end
Use the deletion strategy instead of anonymising individual fields.
Use the deletion strategy instead of anonymising individual fields .
example
anonymise do destroy end
anonymise do destroy end