app/forms/steps/check/remove_check_form.rb
def persist!
        raise DisclosureCheckNotFound unless disclosure_check

        return true if remove_check.no?

        disclosure_check.destroy
        disclosure_check.destroyed?
      end
# We do not store this in the database, so when user answers "No" we return true
# Otherwise if the record is successfully destroyed, return true
We do not store this in the database, so when user answers "No" we return true
Otherwise if the record is successfully destroyed, return true
We do not store this in the database so when user answers " No " we return true Otherwise if the record is successfully destroyed return true
def persist!
        raise DisclosureCheckNotFound unless disclosure_check
        return true if remove_check.no?
        disclosure_check.destroy
        disclosure_check.destroyed?
      end
def persist! raise DisclosureCheckNotFound unless disclosure_check return true if remove_check . no? disclosure_check . destroy disclosure_check . destroyed? end
We do not store this in the database, so when user answers "No" we return true
Otherwise if the record is successfully destroyed, return true
We do not store this in the database so when user answers " No " we return true Otherwise if the record is successfully destroyed return true