lib/application_helper.rb in base_presenter-0.0.7 vs lib/application_helper.rb in base_presenter-0.0.8

- old
+ new

@@ -3,10 +3,10 @@ presenter = nil if object_or_class.methods.include?(:new) klass ||= "#{object_or_class}Presenter".constantize presenter = klass - presenter.template = self + presenter.initialize(object_or_class, self) else klass ||= "#{object_or_class.class}Presenter".constantize presenter = klass.new(object_or_class, self) end