Skip to content

Commit ba1905a

Browse files
committed
Merge pull request #794 from carlesjove/to_param
add to_param for correct URL generation
2 parents 6524938 + 637113e commit ba1905a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/fixtures/poro.rb

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def id
1515
@attributes[:id] || @attributes['id'] || object_id
1616
end
1717

18+
def to_param
19+
id
20+
end
21+
1822
def method_missing(meth, *args)
1923
if meth.to_s =~ /^(.*)=$/
2024
@attributes[$1.to_sym] = args[0]

0 commit comments

Comments
 (0)