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

Tallys Martins gitlab at mg.gitlab.com
Mon Feb 13 14:01:38 BRST 2017


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

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

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

Hi, @vfcosta I think you could use a more significant name for this,  e.g. profiles_count or total


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


More information about the Noosfero-dev mailing list