Skip to content
Snippets Groups Projects
Commit 8cadc28a authored by Alexandre Peres Arias's avatar Alexandre Peres Arias
Browse files

fix complaint bug

parent 98f1fce8
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ module OrientDb ...@@ -26,7 +26,7 @@ module OrientDb
#overwriting OrientDb::Base#create method #overwriting OrientDb::Base#create method
def create(complaint) def create(complaint)
if complaint.valid? if complaint.valid?
create_and_set_edge('Complaint', complaint.user.rid, complaint.object.id, complaint.to_orientdb_hash) create_and_set_edge('Complaint', complaint.user.rid, complaint.object, complaint.to_orientdb_hash)
return true return true
end end
false false
......
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