diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-28 16:24:42 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-28 16:24:42 -0300 |
commit | eea61a030e96625c53c57b63f0a9449850cf78df (patch) | |
tree | 34d1711c78f89fce8f8d06c02ebdd1a4d78a72af /actionpack/lib/action_dispatch | |
parent | 6286b63f27b6b36b9603c4c68600f8f352b84137 (diff) | |
download | rails-eea61a030e96625c53c57b63f0a9449850cf78df.tar.gz rails-eea61a030e96625c53c57b63f0a9449850cf78df.tar.bz2 rails-eea61a030e96625c53c57b63f0a9449850cf78df.zip |
Initialize @compiled_at if it is not.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/static.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/static.rb b/actionpack/lib/action_dispatch/middleware/static.rb index 581cadbeb4..6d442b91f5 100644 --- a/actionpack/lib/action_dispatch/middleware/static.rb +++ b/actionpack/lib/action_dispatch/middleware/static.rb @@ -7,6 +7,7 @@ module ActionDispatch @compiled_at = Regexp.compile(/^#{Regexp.escape(at)}/) unless @at.blank? @compiled_root = Regexp.compile(/^#{Regexp.escape(root)}/) @file_server = ::Rack::File.new(root) + @compiled_at ||= nil end def match?(path) |