From 3c217faa860d70bb26912864bfd1eca76142b1b9 Mon Sep 17 00:00:00 2001 From: daisuko Date: Wed, 11 Nov 2015 21:13:33 +0900 Subject: remove unnecessary @compiled_root from static.rb --- actionpack/lib/action_dispatch/middleware/static.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'actionpack') 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 -- cgit v1.2.3