1
0
Fork 0
mirror of https://github.com/nov/fb_graph2 synced 2023-03-27 23:22:15 -04:00

support FbGraph2::Node object as edge_scope

if node object given, use it's id
This commit is contained in:
nov 2014-06-02 15:20:58 +09:00
parent 3bcf3d926a
commit 49f5aeae8b

View file

@ -75,7 +75,7 @@ module FbGraph2
File.join [
File.join(FbGraph2.root_url, id.to_s),
options[:edge],
options[:edge_scope]
options[:edge_scope].respond_to?(:id) ? options[:edge_scope].id : options[:edge_scope]
].compact.collect(&:to_s)
end