README.md in ahoy_email-2.1.0 vs README.md in ahoy_email-2.1.1
- old
+ new
@@ -26,21 +26,28 @@
- [UTM tagging](#utm-tagging)
- [Click analytics](#click-analytics)
## Message History
-To encrypt email addresses, install [Lockbox](https://github.com/ankane/lockbox) and [Blind Index](https://github.com/ankane/blind_index) and run:
+To encrypt email addresses with Lockbox, install [Lockbox](https://github.com/ankane/lockbox) and [Blind Index](https://github.com/ankane/blind_index) and run:
```sh
-rails generate ahoy:messages
+rails generate ahoy:messages --encryption=lockbox
rails db:migrate
```
+To use Active Record encryption (Rails 7+, experimental), run:
+
+```sh
+rails generate ahoy:messages --encryption=activerecord
+rails db:migrate
+```
+
If you prefer not to encrypt data, run:
```sh
-rails generate ahoy:messages --unencrypted
+rails generate ahoy:messages --encryption=none
rails db:migrate
```
Then, add to mailers:
@@ -155,10 +162,10 @@
```
Delete data for a specific user with:
```ruby
-Ahoy::Message.where(user_id: 1).in_batches.delete_all
+Ahoy::Message.where(user_id: 1, user_type: "User").in_batches.delete_all
```
## UTM Tagging
Use UTM tagging to attribute visits or conversions to an email campaign. Add UTM parameters to links with: