lib/rawbotz/helpers/resource_link_helper.rb in rawbotz-0.1.5 vs lib/rawbotz/helpers/resource_link_helper.rb in rawbotz-0.2.0

- old
+ new

@@ -37,9 +37,12 @@ "<a href=\"/supplier/#{supplier.id}\">#{supplier.name}</a>" else "[no supplier]" end end + def order_link order + "<a href=\"/order/#{order.id}\">Order #{order.id} (#{order.supplier.try(:name) || "no supplier"})</a>" + end end end end