Skip to content
Snippets Groups Projects
Commit abf3e8bc authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #1910

parent 0aae339b
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ GIT
GIT
remote: https://github.com/noesya/good_job.git
revision: ef4822fc56f7ccef56109377dd58994bda80cbe6
revision: e8a47d98b84dce78664139f35eb966cd0e06a0a8
specs:
good_job (3.29.3)
activejob (>= 6.0.0)
......@@ -639,7 +639,7 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.14)
zeitwerk (2.6.15)
zlib (2.1.1)
PLATFORMS
......
......@@ -22,7 +22,12 @@
<%= link_to program, [:admin, program] %>
</td>
<% checks.each do |check| %>
<% valid = !program.public_send("best_#{check}").blank? %>
<%
method = program.respond_to?("best_#{check}") ? "best_#{check}"
: "#{check}"
value = program.public_send(method)
valid = value.present?
%>
<td>
<% if valid %>
<span class="<%= Icon::CHECK_OK %> text-success"></span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment