Commit e3414a27648daccf7a58f53b2bdfcf0c72e34404

Authored by Victor Costa
1 parent 141c0c41

api: expose accept_comments from article

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/noosfero/api/entities.rb
... ... @@ -197,6 +197,7 @@ module Noosfero
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 199 expose :published
  200 + expose :accept_comments?, as: :accept_comments
200 201 end
201 202  
202 203 class Article < ArticleBase
... ...