Class: ActionController::Routing::Routes

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-upgrade/upgraders/routes.rb

Class Method Summary collapse

Class Method Details

.draw {|@redrawer| ... } ⇒ Object

Yields:



313
314
315
# File 'lib/rails-upgrade/upgraders/routes.rb', line 313

def self.draw
  yield @redrawer
end

.redrawerObject



309
310
311
# File 'lib/rails-upgrade/upgraders/routes.rb', line 309

def self.redrawer
  @redrawer
end

.setupObject



305
306
307
# File 'lib/rails-upgrade/upgraders/routes.rb', line 305

def self.setup
  @redrawer = RailsUpgrade::Upgraders::RouteRedrawer.new
end