text_article.rb
441 Bytes
# a base class for all text article types.
class TextArticle < Article
xss_terminate :only => [ :name ], :on => 'validation'
def self.type_name
_('Article')
end
include Noosfero::TranslatableContent
def self.icon_name(article = nil)
if article && !article.parent.nil? && article.parent.kind_of?(Blog)
Blog.icon_name
else
Article.icon_name
end
end
def can_display_versions?
true
end
end