[Git][noosfero/noosfero][master] 2 commits: api: expose accept_comments from article

Victor Costa gitlab at mg.gitlab.com
Tue May 10 12:07:44 BRT 2016


Victor Costa pushed to branch master at Noosfero / noosfero


Commits:
e3414a27 by Victor Costa at 2016-05-10T11:33:00-03:00
api: expose accept_comments from article

- - - - -
930a5a02 by Victor Costa at 2016-05-10T15:07:28+00:00
Merge branch 'api-article-expose-accept-comments' into 'master'

api: expose accept_comments from article



See merge request !910
- - - - -


1 changed file:

- lib/noosfero/api/entities.rb


Changes:

=====================================
lib/noosfero/api/entities.rb
=====================================
--- a/lib/noosfero/api/entities.rb
+++ b/lib/noosfero/api/entities.rb
@@ -197,6 +197,7 @@ module Noosfero
         expose :type
         expose :comments, using: CommentBase, :if => lambda{|obj,opt| opt[:params] && ['1','true',true].include?(opt[:params][:show_comments])}
         expose :published
+        expose :accept_comments?, as: :accept_comments
       end
 
       class Article < ArticleBase



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/141c0c4105b088dc081fcdde0105f5eb702fc2e4...930a5a0226a6eb9100dab2d907586ac33cdc5b5b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160510/bdaa1783/attachment.html>


More information about the Noosfero-dev mailing list