diff options
| author | mo <mo.khan@gmail.com> | 2018-02-16 22:46:44 -0700 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2018-02-16 22:46:44 -0700 |
| commit | 07d22024bc6a11a44d41d82e8374adcd34f37f19 (patch) | |
| tree | 0fcefefaece1c008d700275f8b280d0690f5f8b5 | |
| parent | 37415b20fb8ce281bc129a76013640263bd32e85 (diff) | |
implement respond_to_missing?
| -rw-r--r-- | lib/tfa/secure_storage.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tfa/secure_storage.rb b/lib/tfa/secure_storage.rb index 6464cfe..763014e 100644 --- a/lib/tfa/secure_storage.rb +++ b/lib/tfa/secure_storage.rb @@ -61,6 +61,10 @@ module TFA result end + def respond_to_missing?(method, *) + @original.respond_to?(method) + end + def digest @digest ||= Digest::SHA256.digest(@passphrase_request.call) end |
