Commit 930a5a0226a6eb9100dab2d907586ac33cdc5b5b

Authored by Victor Costa
2 parents 141c0c41 e3414a27

Merge branch 'api-article-expose-accept-comments' into 'master'

api: expose accept_comments from article



See merge request !910
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
... ...