use generic orvos link helper in collections#index
authorTom Clegg <tom@clinicalfuture.com>
Thu, 7 Feb 2013 23:40:06 +0000 (18:40 -0500)
committerTom Clegg <tom@clinicalfuture.com>
Thu, 7 Feb 2013 23:40:06 +0000 (18:40 -0500)
app/views/collections/index.html.erb

index 358b216904f9a1c42ace4f96f47bbe32b48c7852..ef1ea2a888a1ba34c77508432b8b37152394b735 100644 (file)
@@ -22,7 +22,7 @@
 
     <tr class="collection">
       <td>
-       <%= link_to c[:uuid], collection_path(c[:uuid]) %>
+       <%= link_to_if_orvos_object c[:uuid] %>
       </td><td>
        <%= raw(distance_of_time_in_words(c[:created_at], Time.now).sub('about ','~').sub(' ','&nbsp;')) if c[:created_at] %>
       </td><td>