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

- old
+ new

@@ -9,10 +9,12 @@ else klass ||= "#{object_or_class.class}Presenter".constantize presenter = klass.new(object_or_class, self) end - yield presenter if block_given? - #block.arity > 0 ? yield(presenter) : presenter.instance_eval(&block) + if block_given? + block.arity > 0 ? yield(presenter) : presenter.instance_eval(&block) + end + return presenter end end