Commit 4370374ccd8afc6da44cd41923785e349bdb8232
1 parent
bff10113
Exists in
master
and in
29 other branches
ActionItem21: providing icon name
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@951 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
11 additions
and
0 deletions
Show diff stats
app/models/article.rb
... | ... | @@ -24,4 +24,11 @@ class Article < ActiveRecord::Base |
24 | 24 | body |
25 | 25 | end |
26 | 26 | |
27 | + # provides the icon name to be used for this article. In this class this | |
28 | + # method just returns 'text-html', but subclasses may (and should) override | |
29 | + # to return their specific icons. | |
30 | + def icon_name | |
31 | + 'text-html' | |
32 | + end | |
33 | + | |
27 | 34 | end | ... | ... |
test/unit/article_test.rb