Class: ActionController::Routing::RouteSet

Inherits:
Object
  • Object
show all
Defined in:
lib/timecop-console/routes.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#drawObject



5
6
7
8
9
10
11
12
13
# File 'lib/timecop-console/routes.rb', line 5

def draw
  draw_without_timecop_routes do |map|

    map.update_time '/timecop/update', :controller => 'timecop', :action => 'update'
    map.reset_time '/timecop/reset', :controller => 'timecop', :action => 'reset'

    yield map if block_given?
  end
end

#draw_without_timecop_routesObject



4
# File 'lib/timecop-console/routes.rb', line 4

alias_method :draw_without_timecop_routes, :draw