Use keyword arguments in tag methods
The interface of this method has changed and uses keyword arguments instead of a hash of options. This change will be particularly significant when upgrading to Ruby 3.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%= tag.table options do %>
|
||||
<%= tag.table(**options) do %>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t("admin.poll_officers.officer.name") %></th>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="small-12 medium-4 column">
|
||||
<%= tag.p(options) do %>
|
||||
<%= tag.p(**options) do %>
|
||||
<%= text %> <br><span class="number"><%= amount %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user