From fa43ac7e16a245a4a72b941f8da4f88274c52c7d Mon Sep 17 00:00:00 2001 From: Luciano Prestes Cavalcanti Date: Thu, 6 Aug 2015 11:38:36 -0300 Subject: [PATCH] Add updated_at in entities of API --- lib/noosfero/api/entities.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/noosfero/api/entities.rb b/lib/noosfero/api/entities.rb index 716d0a0..b892e39 100644 --- a/lib/noosfero/api/entities.rb +++ b/lib/noosfero/api/entities.rb @@ -33,6 +33,7 @@ module Noosfero class Profile < Entity expose :identifier, :name, :id expose :created_at, :format_with => :timestamp + expose :updated_at, :format_with => :timestamp expose :image, :using => Image end @@ -77,6 +78,7 @@ module Noosfero expose :body expose :abstract expose :created_at, :format_with => :timestamp + expose :updated_at, :format_with => :timestamp expose :title, :documentation => {:type => "String", :desc => "Title of the article"} expose :created_by, :as => :author, :using => Profile expose :profile, :using => Profile -- libgit2 0.21.2