Use new module_parent and module_parents methods

We were getting some deprecation warnings:

DEPRECATION WARNING: `Module#parent` has been renamed to
`module_parent`. `parent` is deprecated and will be removed in Rails
6.1.

DEPRECATION WARNING: `Module#parents` has been renamed to
`module_parents`. `parents` is deprecated and will be removed in Rails
6.1.
This commit is contained in:
Javi Martín
2021-09-18 14:01:53 +02:00
parent 7fe2309762
commit 7c8e3788ec
5 changed files with 13 additions and 13 deletions

View File

@@ -27,7 +27,7 @@
"aria-hidden": true, class: "button hollow expanded" %>
<%= render "layouts/flash" %>
<%= render "layouts/officing_booth" if controller.class.parent == Officing && session[:booth_id].present? %>
<%= render "layouts/officing_booth" if controller.class.module_parent == Officing && session[:booth_id].present? %>
<%= yield %>
</div>
</div>