From 5e60795f311e9bad981583f6b6a2bb3e334dd557 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 27 Jun 2013 10:47:02 -0700 Subject: [PATCH] Oops, delegate Item::Proxy#to_param to the item, or we get bad links. --- app/models/item/proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/item/proxy.rb b/app/models/item/proxy.rb index e627842a..e31c789d 100644 --- a/app/models/item/proxy.rb +++ b/app/models/item/proxy.rb @@ -5,7 +5,7 @@ class Item attr_reader :id attr_writer :item, :owned, :wanted - delegate :description, :name, :nc?, :thumbnail_url, to: :item + delegate :description, :name, :nc?, :thumbnail_url, :to_param, to: :item def initialize(id) @id = id