Skip to content
Snippets Groups Projects
Commit 9656d181 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Fix duplicated method, already in Repository::Base

parent 5c743429
No related branches found
No related tags found
No related merge requests found
...@@ -43,13 +43,6 @@ module OrientDb ...@@ -43,13 +43,6 @@ module OrientDb
result = connection.command "INSERT INTO LearningObject CONTENT #{learning_object.to_json}" result = connection.command "INSERT INTO LearningObject CONTENT #{learning_object.to_json}"
end end
# Usage:
# repository.for(:learning_objects).destroy learning_object
#
def destroy(learning_object)
connection.command sprintf("DELETE VERTEX #{odb_class} where @rid = '%s'", learning_object.id)
end
def update_property(learning_object,property,value) def update_property(learning_object,property,value)
if accepted_properties.include? property if accepted_properties.include? property
connection.command "UPDATE LearningObject SET #{property}='#{value}' WHERE @rid = #{learning_object.id}" connection.command "UPDATE LearningObject SET #{property}='#{value}' WHERE @rid = #{learning_object.id}"
......
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