lib/draper/view_context/build_strategy.rb in draper-2.1.0 vs lib/draper/view_context/build_strategy.rb in draper-3.0.0.pre1

- old
+ new

@@ -36,10 +36,10 @@ attr_reader :block def controller (Draper::ViewContext.controller || ApplicationController.new).tap do |controller| - controller.request ||= ActionController::TestRequest.new if defined?(ActionController::TestRequest) + controller.request ||= ActionController::TestRequest.create end end end end