# `Avo::Current`

`Avo::Current` is based on the `Current` pattern Rails exposes using [`ActiveSupport/CurrentAttributes`](https://api.rubyonrails.org/classes/ActiveSupport/CurrentAttributes.html).

On each request Avo will set some values on it.

<Option name="`user`">

This is what will be returned by the `current_user_method` that you've set in your initializer.
</Option>

<Option name="`params`">

Equivalent of `request.params`.
</Option>

<Option name="`request`">

The Rails `request`.
</Option>

<Option name="`context`">

The `context` that you configured in your initializer evaluated in `Avo::ApplicationController`.
</Option>

<Option name="`view_context`">

An instance of [`ActionView::Rendering`](https://api.rubyonrails.org/classes/ActionView/Rendering.html#method-i-view_context) off of which you can run any methods or variables that are available in your partials.

```ruby
view_context.link_to "Avo", "https://avohq.io"
```
</Option>

<Option name="`locale`">

The `locale` of the app.
</Option>

<Option name="`tenant_id`">

You can set the `tenant_id` for the current request.
</Option>

<Option name="`tenant`">

You can set the `tenant` for the current request.
</Option>

**Related:**
  - Multitenancy

---