forked from OpenNeo/impress
Oops, delegate Item::Proxy#to_param to the item, or we get bad links.
This commit is contained in:
parent
b92131b26c
commit
5e60795f31
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class Item
|
||||||
attr_reader :id
|
attr_reader :id
|
||||||
attr_writer :item, :owned, :wanted
|
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)
|
def initialize(id)
|
||||||
@id = id
|
@id = id
|
||||||
|
|
Loading…
Reference in a new issue