Skip to content

Commit

Permalink
Fix & warning interpreted as argument prefix (#177)
Browse files Browse the repository at this point in the history
```bash
madmin/app/views/madmin/application/show.html.erb:10: warning: `&' interpreted as argument prefix
```
  • Loading branch information
JuanVqz authored Oct 12, 2023
1 parent 14599a8 commit 6897f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/madmin/application/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<div class="flex gap-2 items-center px-4">
<% resource.member_actions.each do |action| %>
<%= instance_eval &action %>
<%= instance_eval(&action) %>
<% end %>
<%= link_to "Edit", resource.edit_path(@record), class: "block bg-white hover:bg-gray-100 text-gray-800 font-semibold py-2 px-4 border border-gray-400 rounded shadow" %>
<%= button_to "Delete", resource.show_path(@record), method: :delete, data: { turbo_confirm: "Are you sure?" }, class: "bg-white hover:bg-gray-100 text-red-500 font-semibold py-2 px-4 border border-red-500 rounded shadow pointer-cursor" %>
Expand Down

0 comments on commit 6897f56

Please sign in to comment.