From 637113ecd55daf78181ac42fd2e1bf3a266ec787 Mon Sep 17 00:00:00 2001 From: Carles Jove i Buxeda Date: Fri, 30 Jan 2015 11:08:08 +0100 Subject: [PATCH] add to_param for correct URL generation --- test/fixtures/poro.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/fixtures/poro.rb b/test/fixtures/poro.rb index 3c3068417..f5927fdaa 100644 --- a/test/fixtures/poro.rb +++ b/test/fixtures/poro.rb @@ -15,6 +15,10 @@ def id @attributes[:id] || @attributes['id'] || object_id end + def to_param + id + end + def method_missing(meth, *args) if meth.to_s =~ /^(.*)=$/ @attributes[$1.to_sym] = args[0]