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

Merge branch 'complaints-fix' into 'master'


fix complaint bug

Signed-off-by: default avatarAlexandre Arias <apa13@inf.ufpr.br>

See merge request !129
parents 6f61ee5f 8cadc28a
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ module OrientDb
#overwriting OrientDb::Base#create method
def create(complaint)
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
end
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