Fix url with id in default widget

This commit is contained in:
chris committed 2013-02-23 12:20:45 +08:00
1 parent cd98f9c889
commit ad9b91f792
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ module DefaultWidgetHelper
eval eval("#{method_entry}(#{options})")
when BSON::ObjectId
object = "'#{object.to_s}'"
eval("#{method_entry}(#{object}, #{options})")
eval("#{method_entry}(#{{:id => object}.merge options})")
when Hash
eval("#{method_entry}(#{object.merge options})")
else