From 8b3f3c8561b6d40b11da83fe44e9fcbe21420eef Mon Sep 17 00:00:00 2001 From: "wout@mick-wout.com" Date: Thu, 21 Jan 2021 15:21:17 +0000 Subject: [PATCH] Remove trailing commas in advanced route constraints example --- guides/source/routing.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/source/routing.md b/guides/source/routing.md index 1f09aff840..34e84c0cbc 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -787,8 +787,8 @@ end Rails.application.routes.draw do constraints(RestrictedListConstraint.new) do - get '*path', to: 'restricted_list#index', - get '*other-path', to: 'other_restricted_list#index', + get '*path', to: 'restricted_list#index' + get '*other-path', to: 'other_restricted_list#index' end end ``` @@ -798,8 +798,8 @@ You can also use a `lambda`: ```ruby Rails.application.routes.draw do constraints(lambda { |request| RestrictedList.retrieve_ips.include?(request.remote_ip) }) do - get '*path', to: 'restricted_list#index', - get '*other-path', to: 'other_restricted_list#index', + get '*path', to: 'restricted_list#index' + get '*other-path', to: 'other_restricted_list#index' end end ```