Fix url with id in default widget
This commit is contained in:
parent
cd98f9c889
commit
ad9b91f792
|
@ -51,7 +51,7 @@ module DefaultWidgetHelper
|
||||||
eval eval("#{method_entry}(#{options})")
|
eval eval("#{method_entry}(#{options})")
|
||||||
when BSON::ObjectId
|
when BSON::ObjectId
|
||||||
object = "'#{object.to_s}'"
|
object = "'#{object.to_s}'"
|
||||||
eval("#{method_entry}(#{object}, #{options})")
|
eval("#{method_entry}(#{{:id => object}.merge options})")
|
||||||
when Hash
|
when Hash
|
||||||
eval("#{method_entry}(#{object.merge options})")
|
eval("#{method_entry}(#{object.merge options})")
|
||||||
else
|
else
|
||||||
|
|
Reference in New Issue