1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/routing/endpoint.rb
Rafael Mendonça França 256a44c439
Merge pull request #22435 from yui-knk/fix_engine_route_test
Make `assert_recognizes` to traverse mounted engines
2017-11-06 17:24:44 -05:00

14 lines
477 B
Ruby

# frozen_string_literal: true
module ActionDispatch
module Routing
class Endpoint # :nodoc:
def dispatcher?; false; end
def redirect?; false; end
def engine?; rack_app.respond_to?(:routes); end
def matches?(req); true; end
def app; self; end
def rack_app; app; end
end
end
end