Sha256: 01a47193239a1ed9a980309bf063b1694edfd9028411477cbc9d1da7704673e4
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
module Draper module ViewContext def self.infect!(context) context.instance_eval do ApplicationController.new.view_context Draper::ViewContext.current.controller.request ||= ActionController::TestRequest.new Draper::ViewContext.current.request ||= Draper::ViewContext.current.controller.request Draper::ViewContext.current.params ||= {} end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
draper-0.17.0 | lib/draper/test/view_context.rb |
draper-0.16.0 | lib/draper/test/view_context.rb |