Don't use instace variables in component views

Just like we do every else (sometimes even on that very same file), we
use the method instead of the instance variable.

We're doing this change now because we're about to modify one of these
files (the poll question answers documents index component).
This commit is contained in:
Javi Martín
2024-05-14 00:16:52 +02:00
parent bfee1b0ecb
commit 6188281d33
6 changed files with 8 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
<%= header do %>
<%= render Admin::ActionComponent.new(
:destroy,
@page,
page,
text: t("admin.site_customization.pages.index.delete"),
confirm: true,
class: "delete"