Class: Draper::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/draper/railtie.rb

Instance Method Summary collapse

Instance Method Details

#initialize_view_contextObject



49
50
51
52
53
# File 'lib/draper/railtie.rb', line 49

def initialize_view_context
  require 'action_controller/test_case'
  Draper.default_controller.new.view_context
  Draper::ViewContext.build
end