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

add repository method AttributeRepository#find_all_by_learning_object

parent 022c4af5
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,10 @@ module OrientDb
build_object(result.first)
end
def find_all_by_learning_object(learning_object)
build_objects get_edges_end("HasAttr", "out", learning_object.id)
end
def build_object(args={})
attribute = nil
unless args.nil?
......
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