noosfero | communities-block: add api content (!1112)

Tallys Martins gitlab at mg.gitlab.com
Mon Feb 13 14:26:19 BRST 2017


New comment for Merge Request !1112 on app/models/communities_block.rb:

https://gitlab.com/noosfero/noosfero/merge_requests/1112#note_23286089

>      owner.communities
>    end
>  
> +  def api_content(params = {})
> +    content = Api::Entities::Community.represent(profiles.limit(self.limit)).as_json
> +    content['#'] = profiles.size

Ok, let's keep with this


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170213/eaae4561/attachment.html>


More information about the Noosfero-dev mailing list