instance method file_readable?

Ruby on Rails 7.1.6

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

file_readable?(path)

No documentation comment.

Parameters

path req
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 142
      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 142 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::FileHandler

Type at least 2 characters to search.

↑↓ navigate · open · esc close