instance method key?

Ruby on Rails 8.1.2

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

key?()

Returns truthy if #key is truthy. Returns falsy otherwise. Unlike #key, does not raise MissingKeyError when raise_if_missing_key is true.

Source
# File activesupport/lib/active_support/encrypted_file.rb, line 58
    def key?
      read_env_key || read_key_file
    end

Defined in activesupport/lib/active_support/encrypted_file.rb line 58 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::EncryptedFile

Type at least 2 characters to search.

↑↓ navigate · open · esc close