module ActionDispatch::DrawOnce
Hold off drawing routes until all the possible controller classes have been loaded.
Attributes
drew[RW]
Public Instance Methods
before_setup()
click to toggle source
Calls superclass method
# File actionview/test/abstract_unit.rb, line 94 def before_setup super return if DrawOnce.drew ActiveSupport::Deprecation.silence do SharedTestRoutes.draw do get ":controller(/:action)" end ActionDispatch::IntegrationTest.app.routes.draw do get ":controller(/:action)" end end DrawOnce.drew = true end