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,6 +590,9 @@ class Article < ActiveRecord::Base | ||
590 | h[klass] | 590 | h[klass] |
591 | end | 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 | UploadedFile | 596 | UploadedFile |
594 | TextArticle | 597 | TextArticle |
595 | TinyMceArticle | 598 | TinyMceArticle |
@@ -600,7 +603,6 @@ class Article < ActiveRecord::Base | @@ -600,7 +603,6 @@ class Article < ActiveRecord::Base | ||
600 | Blog | 603 | Blog |
601 | Forum | 604 | Forum |
602 | Event | 605 | Event |
603 | - #excludes RssFeed | ||
604 | 606 | ||
605 | def f_type | 607 | def f_type |
606 | case self.class.to_s | 608 | case self.class.to_s |