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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user