Commit e3414a27648daccf7a58f53b2bdfcf0c72e34404
1 parent
141c0c41
Exists in
ratings_minor_fixes
and in
4 other branches
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,6 +197,7 @@ module Noosfero | ||
197 | expose :type | 197 | expose :type |
198 | expose :comments, using: CommentBase, :if => lambda{|obj,opt| opt[:params] && ['1','true',true].include?(opt[:params][:show_comments])} | 198 | expose :comments, using: CommentBase, :if => lambda{|obj,opt| opt[:params] && ['1','true',true].include?(opt[:params][:show_comments])} |
199 | expose :published | 199 | expose :published |
200 | + expose :accept_comments?, as: :accept_comments | ||
200 | end | 201 | end |
201 | 202 | ||
202 | class Article < ArticleBase | 203 | class Article < ArticleBase |