From f1afd938f97ffe996874e635c78aa9dbc0566455 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 10 Mar 2014 13:45:21 -0300 Subject: [PATCH] file-presenter: add base_class to allow encapsulated content polymorphic relations --- lib/file_presenter.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/file_presenter.rb b/lib/file_presenter.rb index 4b21b13..16db606 100644 --- a/lib/file_presenter.rb +++ b/lib/file_presenter.rb @@ -13,6 +13,10 @@ class FilePresenter klass.accepts?(f) ? klass.new(f) : f end + def self.base_class + Article + end + def initialize(f) @file = f end -- libgit2 0.21.2