Skip to content

Current

Request-scoped global context, built on ActiveSupport::CurrentAttributes and generated into app/models/current.rb.

Trek uses it to cache per-request data — for instance the loaded icon set:

ruby
Current.icons

Extend it with your own request-scoped attributes as your application grows (current user, tenant, locale…).

Released under the MIT License.