instance method
file_readable?
Ruby on Rails 8.1.2
Since v6.1.7.10 PrivateSignature
file_readable?(path)
No documentation comment.
Parameters
-
pathreq
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 144
def file_readable?(path)
file_path = File.join(@root, path.b)
File.file?(file_path) && File.readable?(file_path)
end
Defined in actionpack/lib/action_dispatch/middleware/static.rb line 144
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::FileHandler