instance method
root_entry?
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
root_entry?(name)
Whether the root directory has an entry (file or directory) by this name.
Parameters
-
namereq
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 164
def root_entry?(name)
File.exist?("#{@root}/#{name.ascii_only? ? name : name.b}")
end
Defined in actionpack/lib/action_dispatch/middleware/static.rb line 164
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::FileHandler