noosfero | WIP: Rails 5.1.6 Upgrade (!1438)

Álax Alves gitlab at mg.gitlab.com
Thu May 24 11:37:18 BRT 2018


Álax Alves commented on a discussion on app/models/category.rb:

> +  has_many :articles, through:  :article_categorizations
> +  has_many :comments, through:  :articles
>  
> -  has_many :events, :through => :article_categorizations, :class_name => 'Event', :source => :article
> +  has_many :events, through:  :article_categorizations, class_name:  'Event', source:  :article
>  
>    has_many :profile_categorizations
> -  has_many :profiles, :through => :profile_categorizations, :source => :profile
> -  has_many :enterprises, :through => :profile_categorizations, :source => :profile, :class_name => 'Enterprise'
> -  has_many :people, :through => :profile_categorizations, :source => :profile, :class_name => 'Person'
> -  has_many :communities, :through => :profile_categorizations, :source => :profile, :class_name => 'Community'
> +  has_many :profiles, through:  :profile_categorizations, source:  :profile
> +  has_many :enterprises, through:  :profile_categorizations, source:  :profile, class_name:  'Enterprise'
> +  has_many :people, through:  :profile_categorizations, source:  :profile, class_name:  'Person'
> +  has_many :communities, through:  :profile_categorizations, source:  :profile, class_name:  'Community'
>  

I've fixed those in fb6b5e95

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


More information about the Noosfero-dev mailing list