app/models/waste_carriers_engine/renewing_registration.rb
# Check if a transient renewal already exists for this registration so we don't have
# multiple renewals in progress at once
Check if a transient renewal already exists for this registration so we don't have
multiple renewals in progress at once
Check if a transient renewal already exists for this registration so we don ' t have multiple renewals in progress at once
def no_renewal_in_progress?
      return unless RenewingRegistration.where(reg_identifier: reg_identifier).exists?
      errors.add(:reg_identifier, :renewal_in_progress)
    end
def no_renewal_in_progress? return unless RenewingRegistration . where ( reg_identifier : reg_identifier ) . exists? errors . add ( :reg_identifier , :renewal_in_progress ) end
Check if a transient renewal already exists for this registration so we don't have
multiple renewals in progress at once
Check if a transient renewal already exists for this registration so we don ' t have multiple renewals in progress at once