lib/application_helper.rb in base_presenter-0.0.9 vs lib/application_helper.rb in base_presenter-0.0.10
- old
+ new
@@ -1,6 +1,6 @@
module ApplicationHelper
- def present(object_or_class, klass = nil)
+ def present(object_or_class, klass = nil, &block)
presenter = nil
if object_or_class.methods.include?(:new)
klass ||= "#{object_or_class}Presenter".constantize
presenter = klass