Skip to content

Commit

Permalink
use ActionController::TestRequest.create instead of ActionController:…
Browse files Browse the repository at this point in the history
…:TestRequest.new

fixes drapergem#698
  • Loading branch information
audionerd committed Oct 8, 2015
1 parent dd24576 commit e816e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/draper/view_context/build_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def call

def controller
(Draper::ViewContext.controller || ApplicationController.new).tap do |controller|
controller.request ||= ActionController::TestRequest.new if defined?(ActionController::TestRequest)
controller.request ||= ActionController::TestRequest.create if defined?(ActionController::TestRequest)
end
end
end
Expand Down

0 comments on commit e816e0e

Please sign in to comment.