Created
June 2, 2011 01:07
-
-
Save seth/1003725 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Chef::EncryptedDataBagItem | |
def [](key) | |
value = @enc_hash[key] | |
if key == "id" || value.nil? | |
value | |
else | |
self.class.decrypt_value(value, @secret) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment