Module: TypeSpecFromSerializers::MapperPatch
- Defined in:
- lib/typespec_from_serializers/dsl/routing.rb
Overview
Internal: Patches ActionDispatch::Routing::Mapper::Base to intercept match method.
Intercepts the low-level match method used by get, post, patch, delete, etc.
Instance Method Summary collapse
Instance Method Details
#match(path, *rest, &block) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/typespec_from_serializers/dsl/routing.rb', line 49 def match(path, *rest, &block) = rest.last.is_a?(Hash) ? rest.pop.dup : {} RoutingPatchHelpers.move_type_to_defaults!() rest.push() unless .empty? super(path, *rest, &block) end |