noosfero | Adds "Filter by Profile Kind" option to ProfileListBlock (!1391)
Rodrigo Souto
gitlab at mg.gitlab.com
Thu Feb 1 16:46:25 BRST 2018
Rodrigo Souto started a new discussion on app/models/profile_list_block.rb:
> def profile_list
> result = nil
> public_profiles = profiles.is_public.includes([:image,:domains,:preferred_domain,:environment])
> + public_profiles = filter_by_kind(public_profiles) if kind_filter.present?
Why not move this `if kind_filter.present?` to `filter_by_kind` method?
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1391#note_57194704
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180201/c75e8152/attachment.html>
More information about the Noosfero-dev
mailing list