added filter criteria models

This commit is contained in:
Edin Dazdarevic
2015-02-07 14:48:02 +01:00
parent 0bb6bb5a49
commit ead0e87e31
25 changed files with 240 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
class Category < ActiveRecord::Base
has_many :sub_categories
has_many :filter_criterias, as: :owner
belongs_to :section
end