aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-11-12 17:18:11 +0100
committerYves Senn <yves.senn@gmail.com>2015-11-12 17:18:11 +0100
commit0e04ae3d2a6501698060eefeff5d496e3591882f (patch)
tree1b00eb10d444e5df2c8e68a116127ee8cd901c67 /actionpack
parent19398ab98af04eedb2574890ed0d8ecdf82ebb4c (diff)
parent3c217faa860d70bb26912864bfd1eca76142b1b9 (diff)
downloadrails-0e04ae3d2a6501698060eefeff5d496e3591882f.tar.gz
rails-0e04ae3d2a6501698060eefeff5d496e3591882f.tar.bz2
rails-0e04ae3d2a6501698060eefeff5d496e3591882f.zip
Merge pull request #22259 from daisuko/remove_compiled_root_from_static_rb
remove unnecessary @compiled_root from static.rb
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/static.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/static.rb b/actionpack/lib/action_dispatch/middleware/static.rb
index 75f8e05a3f..ea9ab3821d 100644
--- a/actionpack/lib/action_dispatch/middleware/static.rb
+++ b/actionpack/lib/action_dispatch/middleware/static.rb
@@ -15,7 +15,6 @@ module ActionDispatch
class FileHandler
def initialize(root, index: 'index', headers: {})
@root = root.chomp('/')
- @compiled_root = /^#{Regexp.escape(root)}/
@file_server = ::Rack::File.new(@root, headers)
@index = index
end