noosfero | WIP: Rails 5.1.6 Upgrade (!1438)

Gabriel Silva gitlab at mg.gitlab.com
Wed Oct 31 12:29:37 BRST 2018


Gabriel Silva started a new discussion on app/models/article.rb:

>  
>    after_destroy :destroy_link_article
>    def destroy_link_article
> -    Article.where(:reference_article_id => self.id, :type => LinkArticle).destroy_all
> +    Article.where(reference_article_id: self.id).destroy_all

Are you sure we don't need to include the type check on the query?

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


More information about the Noosfero-dev mailing list