Merge branch 'master' into 'master'
Update show.html.erb fix error when @entries.first is nil See merge request !1
This commit is contained in:
commit
717b3a6ff0
|
@ -27,7 +27,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% can_edit = can_edit_or_delete?(@entries.first.u_table) %>
|
<% can_edit = can_edit_or_delete?(@entries.first.u_table) if !(@entries.first.nil?) %>
|
||||||
<% @entries.each do |entry| %>
|
<% @entries.each do |entry| %>
|
||||||
<tr>
|
<tr>
|
||||||
<% @columns.each_with_index do |column, index| %>
|
<% @columns.each_with_index do |column, index| %>
|
||||||
|
|
Loading…
Reference in New Issue