From b5b4b6cdb3819d2c3f57b02a25f988530092f00a Mon Sep 17 00:00:00 2001
From: Mauricio Giacomini Girardello <mauriciogiacomini4@gmail.com>
Date: Sun, 27 Sep 2015 08:19:21 -0300
Subject: [PATCH] update models attributes

---
 app/models/subject.rb                                    | 2 +-
 app/models/web_link.rb                                   | 2 +-
 app/repositories/orient_db/learning_object_repository.rb | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/models/subject.rb b/app/models/subject.rb
index 58e25fa4..c02bd100 100644
--- a/app/models/subject.rb
+++ b/app/models/subject.rb
@@ -1,5 +1,5 @@
 class Subject
   include ActiveModel::Model
 
-  attr_accessor :id, :dateCreation, :description, :highlights, :name
+  attr_accessor :id, :created_at, :description, :highlights, :name
 end
\ No newline at end of file
diff --git a/app/models/web_link.rb b/app/models/web_link.rb
index ee1edc1e..3b84a284 100644
--- a/app/models/web_link.rb
+++ b/app/models/web_link.rb
@@ -1,4 +1,4 @@
 class WebLink
   include ActiveModel::Model
-  attr_accessor :id, :dateCreation, :description, :name, :thumbnail, :url
+  attr_accessor :id, :created_at, :description, :name, :thumbnail, :url
 end
\ No newline at end of file
diff --git a/app/repositories/orient_db/learning_object_repository.rb b/app/repositories/orient_db/learning_object_repository.rb
index b1549683..54b9f847 100644
--- a/app/repositories/orient_db/learning_object_repository.rb
+++ b/app/repositories/orient_db/learning_object_repository.rb
@@ -81,7 +81,7 @@ module OrientDb
                               :name => args["name"],
                               :description => args["description"],
                               :thumbnail => args["thumbnail"],
-                              :date_creation => args["date_creation"],
+                              :created_at => args["created_at"],
                               :id_dspace => args["id_dspace"],
                               :type => args["type"],
                               :bitstreams => args["bitstreams"],
-- 
GitLab