bunch of minor fixes

This commit is contained in:
Edin Dazdarevic
2015-02-13 23:44:53 +01:00
parent 62f6249e4c
commit 9ca7b33b91
6 changed files with 37 additions and 1 deletions

View File

@@ -9,8 +9,11 @@ class SubCategory < ActiveRecord::Base
end
def custom_subcat_name
return self.name if not self.category
cat = self.category.name
section = self.category.section.name
"#{section} -> #{cat} -> #{self.name}"
end
end