rescue fallback
This commit is contained in:
parent
4e9968f58f
commit
f01785443e
|
@ -17,9 +17,9 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="/admin/page_contents/<%= page.id.to_s %>/view" ><%= page.page_contexts.last.version %></a></td>
|
<td><a href="/admin/page_contents/<%= page.id.to_s %>/view" ><%= page.page_contexts.last.version rescue nil %></a></td>
|
||||||
<td><%= format_value page.page_contexts.last.updated_at %></td>
|
<td><%= format_value page.page_contexts.last.updated_at rescue nil %></td>
|
||||||
<td><%= User.find(page.page_contexts.last.update_user_id).user_name %></td>
|
<td><%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue