We were passing a hash of options instead of converting them to keyword parameters, which resulted in warnings on Ruby 2.7: ``` app/components/admin/table_actions_component.html.erb:5: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call app/components/admin/table_actions_component.html.erb:9: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call app/components/admin/widget/cards/row_component.html.erb:20: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call app/components/admin/widget/cards/table_component.html.erb:14: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call ```
12 lines
325 B
Plaintext
12 lines
325 B
Plaintext
<div class="table-actions">
|
|
<%= content %>
|
|
|
|
<% if actions.include?(:edit) %>
|
|
<%= 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)) %>
|
|
<% end %>
|
|
</div>
|