lib/symmetric_encryption/extensions/mongoid/fields.rb in symmetric-encryption-2.0.0 vs lib/symmetric_encryption/extensions/mongoid/fields.rb in symmetric-encryption-2.0.1
- old
+ new
@@ -23,18 +23,18 @@
# include Mongoid::Document
#
# field :name, :type => String
# field :encrypted_social_security_number, :type => String, :encrypted => true
# field :age, :type => Integer
- # field :life_history, :type => String, :encrypted => true, :compress => true, :random_iv => true
- #
+ # field :encrypted_life_history, :type => String, :encrypted => true, :compress => true, :random_iv => true
# end
#
# The above document results in the following document in the Mongo collection 'persons':
# {
# "name" : "Joe",
# "encrypted_social_security_number" : "...",
# "age" : 21
+ # "encrypted_life_history" : "...",
# }
#
# Symmetric Encryption creates the getters and setters to be able to work with the field
# in it's unencrypted form. For example
#