I have a multi-tenant rails app that uses the apartment gem. When I use rails console, I am constantly calling Apartment::Tenant.switch to navigate between apartments. I would like to create a config file somewhere that where I can abreviate this call to something shorter to type. How would I go about doing this so that when I start up the console with rails console
this shorter call is available? I was imagining something like
swtich = Apartment::Tenant.switch
And then whenever I call switch then it calls the original function.