Commit f1afd938f97ffe996874e635c78aa9dbc0566455

Authored by Rodrigo Souto
1 parent 49e6135e

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 13 klass.accepts?(f) ? klass.new(f) : f
14 14 end
15 15  
  16 + def self.base_class
  17 + Article
  18 + end
  19 +
16 20 def initialize(f)
17 21 @file = f
18 22 end
... ...