Skip to content
Browse files

Initialize @compiled_at if it is not.

  • Loading branch information...
1 parent 6286b63 commit eea61a030e96625c53c57b63f0a9449850cf78df @miloops miloops committed Sep 28, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_dispatch/middleware/static.rb
View
1 actionpack/lib/action_dispatch/middleware/static.rb
@@ -7,6 +7,7 @@ def initialize(at, root)
@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)

0 comments on commit eea61a0

Please sign in to comment.
Something went wrong with that request. Please try again.