From feaa4cec58cb9accacfe80f71819f5eab01267bd Mon Sep 17 00:00:00 2001
From: Mauricio Giacomini Girardello <mauriciogiacomini4@gmail.com>
Date: Wed, 18 Nov 2015 16:07:03 -0200
Subject: [PATCH] adding OrientDbSerializable module in attribute model

---
 app/models/attribute.rb                            | 2 +-
 app/repositories/orient_db/attribute_repository.rb | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/models/attribute.rb b/app/models/attribute.rb
index af0710be3..403de827e 100644
--- a/app/models/attribute.rb
+++ b/app/models/attribute.rb
@@ -1,6 +1,6 @@
 class Attribute
   include ActiveModel::Model
+  include OrientDbSerializable
 
   attr_accessor :id, :key, :value
-  
 end
\ No newline at end of file
diff --git a/app/repositories/orient_db/attribute_repository.rb b/app/repositories/orient_db/attribute_repository.rb
index a0283b36a..6d05df8a8 100644
--- a/app/repositories/orient_db/attribute_repository.rb
+++ b/app/repositories/orient_db/attribute_repository.rb
@@ -13,6 +13,8 @@ module OrientDb
       build_objects get_edges_end("HasAttr", "out", learning_object.id)
     end
 
+    protected
+
     def build_object(args={})
       AttributeBuilder.build_from_orientdb args
     end
-- 
GitLab