README.md in symmetric-encryption-2.0.2 vs README.md in symmetric-encryption-2.2.0

- old
+ new

@@ -77,11 +77,11 @@ ## Features * Encryption of passwords in configuration files * Encryption of ActiveRecord model attributes by prefixing attributes / column names with encrypted_ -* Encryption of Mongoid model fields by adding :encrypted => true to field +* Encryption of Mongoid model fields by adding :encrypted option to field definitions * Externalization of symmetric encryption keys so that they are not in the source code, or the source code control system * Validator for ActiveRecord Models to ensure fields contain encrypted data * Stream based encryption and decryption so that large files can be read or @@ -158,10 +158,10 @@ include Mongoid::Document field :name, :type => String field :encrypted_bank_account_number, :type => String, :encrypted => true field :encrypted_social_security_number, :type => String, :encrypted => true - field :encrypted_life_history, :type => String, :encrypted => true, :compress => true, :random_iv => true + field :encrypted_life_history, :type => String, :encrypted => {:compress => true, :random_iv => true} end # Create a new user document User.create(:bank_account_number => '12345')