mardi 12 septembre 2017

Implement array and interpolate

I have this Ruby code that I want to use:

if args[:remove_existing_trxs] == 'true'
    Acquirer.delete_all
    Company.delete_all
    Currency.delete_all
    AdminUser.delete_all
    BaseReseller.delete_all
    Terminal.delete_all
    Contract.delete_all
    Merchant.delete_all
    MerchantUser.delete_all
    PaymentTransaction.delete_all
  end

How I can define it as an array and interpolate it?

Aucun commentaire:

Enregistrer un commentaire