Fix url with id in default widget

This commit is contained in:
chris 2013-02-23 12:20:45 +08:00
parent cd98f9c889
commit ad9b91f792
1 changed files with 1 additions and 1 deletions

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