Methods
C
R
Class Public methods
call(env)
# File actionpack/test/dispatch/prefix_generation_test.rb, line 297
def self.call(env)
  env['action_dispatch.routes'] = routes
  routes.call(env)
end
routes()
# File actionpack/test/dispatch/prefix_generation_test.rb, line 286
def self.routes
  @routes ||= begin
    routes = ActionDispatch::Routing::RouteSet.new
    routes.draw do
      match "/posts/:id", :to => "posts#show", :as => :post
    end

    routes
  end
end