Commit dc31e47243d67b6c6547d73512267d2365394b18
1 parent
6fb4a4fb
Exists in
master
and in
29 other branches
Fix for after_save_reindex profiles on Category
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/category.rb
... | ... | @@ -22,6 +22,7 @@ class Category < ActiveRecord::Base |
22 | 22 | has_many :events, :through => :article_categorizations, :class_name => 'Event', :source => :article |
23 | 23 | |
24 | 24 | has_many :profile_categorizations, :dependent => :destroy |
25 | + has_many :profiles, :through => :profile_categorizations, :source => :profile | |
25 | 26 | has_many :enterprises, :through => :profile_categorizations, :source => :profile, :class_name => 'Enterprise' |
26 | 27 | has_many :people, :through => :profile_categorizations, :source => :profile, :class_name => 'Person' |
27 | 28 | has_many :communities, :through => :profile_categorizations, :source => :profile, :class_name => 'Community' | ... | ... |