Files
grecia/app/components/admin/table_actions_component.html.erb
taitus 9081174dd7 Add and apply Style/KeywordArgumentsMerging rubocop rule
This rule was introduced in RuboCop 1.68 to encourage passing
additional keyword arguments directly instead of using merge.
2025-03-05 11:42:47 +01:00

12 lines
313 B
Plaintext

<div class="table-actions">
<%= content %>
<% if actions.include?(:edit) %>
<%= action(:edit, **edit_options, text: edit_text, path: edit_path) %>
<% end %>
<% if actions.include?(:destroy) %>
<%= action(:destroy, **destroy_options, text: destroy_text, path: destroy_path) %>
<% end %>
</div>