diff options
author | daisuko <striker.daisuko@gmail.com> | 2015-11-11 21:13:33 +0900 |
---|---|---|
committer | daisuko <striker.daisuko@gmail.com> | 2015-11-11 21:13:33 +0900 |
commit | 3c217faa860d70bb26912864bfd1eca76142b1b9 (patch) | |
tree | 2a8e416e96e92088810e29fb2d260f0417163a6f /actionpack | |
parent | 472b8e054b293c3c4a07572bd2d4904d51d861e0 (diff) | |
download | rails-3c217faa860d70bb26912864bfd1eca76142b1b9.tar.gz rails-3c217faa860d70bb26912864bfd1eca76142b1b9.tar.bz2 rails-3c217faa860d70bb26912864bfd1eca76142b1b9.zip |
remove unnecessary @compiled_root from static.rb
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/static.rb | 1 |
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 |