noosfero | WIP: Rails 5.1.6 Upgrade (!1438)

Álax Alves gitlab at mg.gitlab.com
Thu May 24 11:21:59 BRT 2018


Álax Alves commented on a discussion on app/controllers/public/not_found_controller.rb:

>    end
>  
>    def nothing
> -    render :nothing => true, :status => 404
> +    head :ok, :status => 404

I have done this since `render: :nothing => true` has been deprecated, and the suggested workaround was use `head: :ok`. As in https://stackoverflow.com/questions/34688726/the-nothing-option-is-deprecated-and-will-be-removed-in-rails-5-1

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1438#note_74831832
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/20180524/b5ed6701/attachment.html>


More information about the Noosfero-dev mailing list