Commit f1afd938f97ffe996874e635c78aa9dbc0566455
1 parent
49e6135e
Exists in
master
and in
29 other branches
file-presenter: add base_class to allow encapsulated content polymorphic relations
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/file_presenter.rb
@@ -13,6 +13,10 @@ class FilePresenter | @@ -13,6 +13,10 @@ class FilePresenter | ||
13 | klass.accepts?(f) ? klass.new(f) : f | 13 | klass.accepts?(f) ? klass.new(f) : f |
14 | end | 14 | end |
15 | 15 | ||
16 | + def self.base_class | ||
17 | + Article | ||
18 | + end | ||
19 | + | ||
16 | def initialize(f) | 20 | def initialize(f) |
17 | @file = f | 21 | @file = f |
18 | end | 22 | end |