# Authentication
class User < ActiveRecord::Base
  acts_as_tenant(:account)
end
```
:::

## Setting the current tenant

There are three ways to set the current tenant but we be using the subdomain to lookup the current tenant.
Since Avo has it's own `Application Controller` so there is no point in setting the tenant in Rails default `Application Controller` but we will set it there as well just to be safe site and also we might have some other pages other than Admin Dashboard supported by Avo.

:::code-group
```ruby [app/controllers/concerns/multitenancy.rb]{3}