lib/contrast/framework/rails/support.rb in contrast-agent-3.16.0 vs lib/contrast/framework/rails/support.rb in contrast-agent-4.0.0
- old
+ new
@@ -43,9 +43,12 @@
def collect_routes
find_all_routes(::Rails.application, [])
end
+ # Find the current route, based on the provided Request wrapper
+ # @param request[Contrast::Agent::Request]
+ # @return [Contrast::Api::Dtm::RouteCoverage]
def current_route request
return unless ::Rails.cs__respond_to?(:application)
# returns array of arrays [[match_data, path_parameters, route]], sorted by
# precedence