In my Rails 7 application I've got two controllers:

```
class Context::FrontendController < ApplicationController
end

```

---

```
class Context::BackendController < ApplicationController
end

```

All my other controllers (and there are a lot of them) inherit from either the first one **or** the second one (but never both).

---

In my views I sometimes need to show or hide certain elements depending on if the current controller inherits from the `FrontendController` **OR** the `BackendController`.

How can this check be done?