Commit fa43ac7e16a245a4a72b941f8da4f88274c52c7d
1 parent
f3d1ede5
Exists in
master
and in
21 other branches
Add updated_at in entities of API
Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entities.rb
| ... | ... | @@ -33,6 +33,7 @@ module Noosfero |
| 33 | 33 | class Profile < Entity |
| 34 | 34 | expose :identifier, :name, :id |
| 35 | 35 | expose :created_at, :format_with => :timestamp |
| 36 | + expose :updated_at, :format_with => :timestamp | |
| 36 | 37 | expose :image, :using => Image |
| 37 | 38 | end |
| 38 | 39 | |
| ... | ... | @@ -77,6 +78,7 @@ module Noosfero |
| 77 | 78 | expose :body |
| 78 | 79 | expose :abstract |
| 79 | 80 | expose :created_at, :format_with => :timestamp |
| 81 | + expose :updated_at, :format_with => :timestamp | |
| 80 | 82 | expose :title, :documentation => {:type => "String", :desc => "Title of the article"} |
| 81 | 83 | expose :created_by, :as => :author, :using => Profile |
| 82 | 84 | expose :profile, :using => Profile | ... | ... |