noosfero | WIP: Rails 5.1.6 Upgrade (!1438)
Gabriel Silva
gitlab at mg.gitlab.com
Wed Oct 31 12:06:41 BRST 2018
Gabriel Silva started a new 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? }
Isso tá correto? `params[:circles]` realmente deixou de retornar uma lista e passou a retornar um elemento só? O correto aqui não seria `params[:circles].to_h`?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1438#note_113514852
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/0b10816b/attachment.html>
More information about the Noosfero-dev
mailing list