Commit 5e7913996e1ec728d36e13fb2c0b7a8ea6a3d924
1 parent
e04d28b8
Exists in
staging
and in
42 other branches
Comment problem with subclasses in article
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/models/article.rb
... | ... | @@ -590,6 +590,9 @@ class Article < ActiveRecord::Base |
590 | 590 | h[klass] |
591 | 591 | end |
592 | 592 | |
593 | + # FIXME: workaround for development env. | |
594 | + # Subclasses aren't (re)loaded, and acts_as_solr | |
595 | + # depends on subclasses method to search | |
593 | 596 | UploadedFile |
594 | 597 | TextArticle |
595 | 598 | TinyMceArticle |
... | ... | @@ -600,7 +603,6 @@ class Article < ActiveRecord::Base |
600 | 603 | Blog |
601 | 604 | Forum |
602 | 605 | Event |
603 | - #excludes RssFeed | |
604 | 606 | |
605 | 607 | def f_type |
606 | 608 | case self.class.to_s | ... | ... |