def clear_audit_attributes
      all_audit_attributes.each do |attribute_name|
        if respond_to?(attribute_name) && respond_to?("#{ attribute_name }=")
          write_attribute(attribute_name, nil)
        end
      end

      @changed_attributes = changed_attributes.reduce(ActiveSupport::HashWithIndifferentAccess.new) do |result, (key, value)|
        unless all_audit_attributes.include?(key.to_sym)
          result[key] = value
        end

        result
      end
    end
def clear_audit_attributes
      all_audit_attributes.each do |attribute_name|
        if respond_to?(attribute_name) && respond_to?("#{ attribute_name }=")
          write_attribute(attribute_name, nil)
        end
      end

      @changed_attributes = changed_attributes.reduce(ActiveSupport::HashWithIndifferentAccess.new) do |result, (key, value)|
        unless all_audit_attributes.include?(key.to_sym)
          result[key] = value
        end

        result
      end
    end
Clear attributes and changed_attributes