Acts As Tenant (using Rails console)

When using Rails console with a project that's using "Acts as Tenant" gem (as Jumpstart projects do), you need to set the tenant in console before getting objects.

You can run this as the first thing after entering Rails Console:

ActsAsTenant.current_tenant = Account.first

Then you can run things in Console as you normally would.

Last updated