質問編集履歴
2
誤字修正2
test
CHANGED
File without changes
|
test
CHANGED
@@ -144,8 +144,6 @@
|
|
144
144
|
|
145
145
|
belongs_to :taxonomisable, polymorphic: true
|
146
146
|
|
147
|
-
# belongs_to :job
|
148
|
-
|
149
147
|
belongs_to :contentable, polymorphic: true
|
150
148
|
|
151
149
|
end
|
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,9 +72,9 @@
|
|
72
72
|
|
73
73
|
has_many :contents_taxonomies, :as => :contentable
|
74
74
|
|
75
|
-
has_many :genres, through: :
|
75
|
+
has_many :genres, through: :contents_taxonomies, source: :taxonomisable, source_type: 'Genre'
|
76
|
-
|
76
|
+
|
77
|
-
has_many :areas, through: :
|
77
|
+
has_many :areas, through: :contents_taxonomies, source: :taxonomisable, source_type: 'Area'
|
78
78
|
|
79
79
|
end
|
80
80
|
|
@@ -90,9 +90,9 @@
|
|
90
90
|
|
91
91
|
has_many :contents_taxonomies, :as => :contentable
|
92
92
|
|
93
|
-
has_many :genres, through: :
|
93
|
+
has_many :genres, through: :contents_taxonomies, source: :taxonomisable, source_type: 'Genre'
|
94
|
-
|
94
|
+
|
95
|
-
has_many :areas, through: :
|
95
|
+
has_many :areas, through: :contents_taxonomies, source: :taxonomisable, source_type: 'Area'
|
96
96
|
|
97
97
|
end
|
98
98
|
|