Commit a0f1b76885ac307f8de3cd7dff26557baecabdc1

Authored by Victor Costa
Committed by Rodrigo Souto
1 parent 8e6932ab

api: separate exposed attributes

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
lib/noosfero/api/entities.rb
... ... @@ -55,7 +55,9 @@ module Noosfero
55 55  
56 56 class ArticleBase < Entity
57 57 root 'articles', 'article'
58   - expose :id, :body, :abstract
  58 + expose :id
  59 + expose :body
  60 + expose :abstract
59 61 expose :created_at, :format_with => :timestamp
60 62 expose :title, :documentation => {:type => "String", :desc => "Title of the article"}
61 63 expose :created_by, :as => :author, :using => Profile
... ...