app/services/c100_app/permission/application_rules.rb
# If for some reason permission was required, and details entered, but later
# something changed in the application that made the permission not required,
# we wipe/reset these attributes as otherwise showing their values would be
# confusing on the CYA page and on the PDF.
#
If for some reason permission was required, and details entered, but later
something changed in the application that made the permission not required,
we wipe/reset these attributes as otherwise showing their values would be
confusing on the CYA page and on the PDF.
If for some reason permission was required and details entered but later something changed in the application that made the permission not required we wipe / reset these attributes as otherwise showing their values would be confusing on the CYA page and on the PDF .
def reset_permission_details!
        c100_application.update(
          permission_sought: nil,
          permission_details: nil,
        )
      end
def reset_permission_details! c100_application . update ( permission_sought : nil , permission_details : nil , ) end
If for some reason permission was required, and details entered, but later
something changed in the application that made the permission not required,
we wipe/reset these attributes as otherwise showing their values would be
confusing on the CYA page and on the PDF.
If for some reason permission was required and details entered but later something changed in the application that made the permission not required we wipe / reset these attributes as otherwise showing their values would be confusing on the CYA page and on the PDF .