mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
fixing regexp warnings
This commit is contained in:
@@ -349,7 +349,7 @@ module ActionDispatch
|
||||
options = args.last.is_a?(Hash) ? args.pop : {}
|
||||
|
||||
path = args.shift || block
|
||||
path_proc = path.is_a?(Proc) ? path : proc { |params| (params.empty? || !path.match(/%{\w*}/)) ? path : (path % params) }
|
||||
path_proc = path.is_a?(Proc) ? path : proc { |params| (params.empty? || !path.match(/%\{\w*\}/)) ? path : (path % params) }
|
||||
status = options[:status] || 301
|
||||
|
||||
lambda do |env|
|
||||
|
||||
Reference in New Issue
Block a user