diff --git a/app/components/admin/table_actions_component.html.erb b/app/components/admin/table_actions_component.html.erb index 0bc434bac..58c6b2763 100644 --- a/app/components/admin/table_actions_component.html.erb +++ b/app/components/admin/table_actions_component.html.erb @@ -2,10 +2,10 @@ <%= content %> <% if actions.include?(:edit) %> - <%= action(:edit, edit_options.merge(text: edit_text, path: edit_path)) %> + <%= action(:edit, **edit_options.merge(text: edit_text, path: edit_path)) %> <% end %> <% if actions.include?(:destroy) %> - <%= action(:destroy, destroy_options.merge(text: destroy_text, path: destroy_path)) %> + <%= action(:destroy, **destroy_options.merge(text: destroy_text, path: destroy_path)) %> <% end %> diff --git a/app/components/admin/widget/cards/row_component.html.erb b/app/components/admin/widget/cards/row_component.html.erb index c66b28708..1a1121df3 100644 --- a/app/components/admin/widget/cards/row_component.html.erb +++ b/app/components/admin/widget/cards/row_component.html.erb @@ -17,6 +17,6 @@ <% end %> - <%= render Admin::TableActionsComponent.new(card, options) %> + <%= render Admin::TableActionsComponent.new(card, **options) %> diff --git a/app/components/admin/widget/cards/table_component.html.erb b/app/components/admin/widget/cards/table_component.html.erb index 3a3cf9720..f3397df53 100644 --- a/app/components/admin/widget/cards/table_component.html.erb +++ b/app/components/admin/widget/cards/table_component.html.erb @@ -11,7 +11,7 @@ <% cards.each do |card| %> - <%= render Admin::Widget::Cards::RowComponent.new(card, options) %> + <%= render Admin::Widget::Cards::RowComponent.new(card, **options) %> <% end %>