From 5e7913996e1ec728d36e13fb2c0b7a8ea6a3d924 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Fri, 2 Sep 2011 14:34:07 -0300 Subject: [PATCH] Comment problem with subclasses in article --- app/models/article.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/article.rb b/app/models/article.rb index eaee749..239ed36 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -590,6 +590,9 @@ class Article < ActiveRecord::Base h[klass] end + # FIXME: workaround for development env. + # Subclasses aren't (re)loaded, and acts_as_solr + # depends on subclasses method to search UploadedFile TextArticle TinyMceArticle @@ -600,7 +603,6 @@ class Article < ActiveRecord::Base Blog Forum Event - #excludes RssFeed def f_type case self.class.to_s -- libgit2 0.21.2