Commit 9c680ef2f09e55cfb25909f61943502ac96caaed
1 parent
6f2734cd
Exists in
master
and in
18 other branches
enterprise: Use has_many for #product_categories
Showing
1 changed file
with
0 additions
and
4 deletions
Show diff stats
app/models/enterprise.rb
... | ... | @@ -25,10 +25,6 @@ class Enterprise < Organization |
25 | 25 | has_many :favorite_enterprise_people |
26 | 26 | has_many :fans, source: :person, through: :favorite_enterprise_people |
27 | 27 | |
28 | - def product_categories | |
29 | - ProductCategory.by_enterprise(self) | |
30 | - end | |
31 | - | |
32 | 28 | N_('Organization website'); N_('Historic and current context'); N_('Activities short description'); N_('City'); N_('State'); N_('Country'); N_('ZIP code') |
33 | 29 | |
34 | 30 | settings_items :organization_website, :historic_and_current_context, :activities_short_description | ... | ... |