From 9c680ef2f09e55cfb25909f61943502ac96caaed Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Sat, 12 Dec 2015 14:46:34 -0300 Subject: [PATCH] enterprise: Use has_many for #product_categories --- app/models/enterprise.rb | 4 ---- 1 file changed, 0 insertions(+), 4 deletions(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 57fe219..10e5fcc 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -25,10 +25,6 @@ class Enterprise < Organization has_many :favorite_enterprise_people has_many :fans, source: :person, through: :favorite_enterprise_people - def product_categories - ProductCategory.by_enterprise(self) - end - N_('Organization website'); N_('Historic and current context'); N_('Activities short description'); N_('City'); N_('State'); N_('Country'); N_('ZIP code') settings_items :organization_website, :historic_and_current_context, :activities_short_description -- libgit2 0.21.2