diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 18:23:33 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 18:23:33 -0700 |
commit | 7e057d11aa21383394e570d0de8f4d5f3729d024 (patch) | |
tree | a2be9643fe67955a838825f98f882b1abbed56ed /actionpack/lib/action_dispatch | |
parent | 29c32e832908e13f0e360bbe47c80d5578bffba1 (diff) | |
download | rails-7e057d11aa21383394e570d0de8f4d5f3729d024.tar.gz rails-7e057d11aa21383394e570d0de8f4d5f3729d024.tar.bz2 rails-7e057d11aa21383394e570d0de8f4d5f3729d024.zip |
fixing regexp warnings
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 189da138d8..0c6e1b37a7 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -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| |