noosfero | WIP: Rails 5.1.6 Upgrade (!1438)

Álax Alves gitlab at mg.gitlab.com
Wed Oct 31 17:16:31 BRST 2018


Álax Alves commented on a discussion on app/controllers/my_profile/followers_controller.rb:

>    def update_category
>      followed_profile = Profile.find_by(:id => params["followed_profile_id"])
>  
> -    selected_circles = params[:circles].map{ |circle_name, circle_id| Circle.find_by(:id => circle_id) }.select{ |c| c.present? }
> +    selected_circles = [params[:circles]].map{ |circle_name, circle_id| Circle.find_by(:id => circle_id) }.select{ |c| c.present? }

@gabrielssilva Realmente vc está certo, o params[] agora retorna um objeto. Vamos corrigir

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1438#note_113587560
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/20181031/42396a8c/attachment-0001.html>


More information about the Noosfero-dev mailing list