Commit d488fa59b4e3dbc87b10dc828642d49cb1fcd368

Authored by Victor Costa
2 parents 284c21df a66e7f34

Merge branch 'api-article-published' into 'master'

api: expose published attribute from article



See merge request !888
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/noosfero/api/entities.rb
... ... @@ -196,6 +196,7 @@ module Noosfero
196 196 expose :archived, :documentation => {:type => "Boolean", :desc => "Defines if a article is readonly"}
197 197 expose :type
198 198 expose :comments, using: CommentBase, :if => lambda{|obj,opt| opt[:params] && ['1','true',true].include?(opt[:params][:show_comments])}
  199 + expose :published
199 200 end
200 201  
201 202 class Article < ArticleBase
... ...