Sha256: 22d767a53c6213fa093d42b43b59b62de1f57e255b52ad02fc9397910bb53771

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

module ActionController
  module Routing #:nodoc:
    class RouteSet #:nodoc:
      alias_method :draw_without_timecop_routes, :draw
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jtrupiano-timecop-console-0.1.0 lib/timecop-console/routes.rb
timecop-console-0.1.0 lib/timecop-console/routes.rb