Skip to content
Snippets Groups Projects
Commit e4f0b6b0 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

remove duplicate connection code 'OrientDb::Client.instance' to use Base class 'connection' method.

parent a80c8407
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ module OrientDb ...@@ -6,7 +6,7 @@ module OrientDb
end end
def create_edge(edge_class, from_id, to_id) def create_edge(edge_class, from_id, to_id)
OrientDb::Client.instance.command "CREATE EDGE #{edge_class} FROM #{from_id} TO #{to_id}" connection.command "CREATE EDGE #{edge_class} FROM #{from_id} TO #{to_id}"
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment