noosfero | Improvements for articles endpoint (!1136)
Leandro Nunes
gitlab at mg.gitlab.com
Thu Mar 16 08:10:15 BRT 2017
New comment for Merge Request !1136 on app/api/entities.rb:
https://gitlab.com/noosfero/noosfero/merge_requests/1136#note_25498034
> expose :comments, using: CommentBase, :if => lambda{|comment,options| Entities.expose_optional_field?(:comments, options)}
> expose :published
> expose :accept_comments?, as: :accept_comments
> + expose :mime_type
> + expose :size, :if => lambda { |article, options| article.kind_of?(UploadedFile)}
@evandrojr please make some tests for this expose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170316/97e1df77/attachment.html>
More information about the Noosfero-dev
mailing list