Permalink
Browse files

Ensure we use Ruby's base File object, not Rack::File or any other Fi…

…le class.
  • Loading branch information...
arsduo committed Jul 29, 2011
1 parent aec0de8 commit 562573d862a535061d156f0bbf79f5d71912197d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/offline.rb
View
@@ -74,7 +74,7 @@ def call(env)
def precache_key!
hash = @config.cache.map do |item|
path = @root.join(item)
- Digest::SHA2.hexdigest(path.read) if File.file?(path)
+ Digest::SHA2.hexdigest(path.read) if ::File.file?(path)
end
@key = Digest::SHA2.hexdigest(hash.join)

0 comments on commit 562573d

Please sign in to comment.