Permalink
Browse files

Fixed tasks/show when end_complexity isn't given

  • Loading branch information...
Botond Erdos
Botond Erdos committed Jul 24, 2012
1 parent e96040f commit caed81ffbae81fba10cae4fb234026ab05a8b3f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/tasks/show.html.erb
@@ -17,7 +17,7 @@
<p>
<b>End complexity:</b>
<%= @task.end_complexity.code if task.end_complexity %>
<%= @task.end_complexity.code if @task.end_complexity %>
</p>
<p>

2 comments on commit caed81f

@juhat

This comment has been minimized.

Member

juhat replied Jul 24, 2012

You can use try() in the view code to make it simpler.

@erdosboti

This comment has been minimized.

erdosboti replied Jul 24, 2012

Please sign in to comment.