README.markdown in shuber-attr_encrypted-1.0.2 vs README.markdown in shuber-attr_encrypted-1.0.3
- old
+ new
@@ -259,16 +259,21 @@
Then you'll have these two class methods available for each attribute: `User.encrypt_email(email_to_encrypt)` and `User.decrypt_email(email_to_decrypt)`. This can
be useful when you're using ActiveRecord (see below).
+### DataMapper ###
+
+For your convenience, the `:encode` and `:marshal` options are set to true by default since you'll be storing everything in a database.
+
+
### ActiveRecord ###
If you're using this gem with ActiveRecord, you get a few extra features:
#### Default options ####
-For your convenience, the `:encode` and `:marshal` options are set to true by default since you'll be storing everything in a database.
+Just like the default options for DataMapper, the `:encode` and `:marshal` options are set to true by default since you'll be storing everything in a database.
#### Dynamic find\_by\_ and scoped\_by\_ methods ####
Let's say you'd like to encrypt your user's email addresses, but you also need a way for them to login. Simply set up your class like so:
\ No newline at end of file