instance method
key?
Ruby on Rails 8.1.2
Since v7.1.6Signature
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