README.md in mautic-2.3.4 vs README.md in mautic-2.3.5
- old
+ new
@@ -86,9 +86,21 @@
```ruby
contact.email = ""
contact.save # => false
contact.errors # => [{"code"=>400, "message"=>"email: This field is required.", "details"=>{"email"=>["This field is required."]}}]
```
+ Do not contact
+ ```ruby
+ contact.do_not_contact? # => false
+ contact.do_not_contact! message: "Some reason"
+ contact.do_not_contact? # => true
+ ```
+ Remove do not contact
+ ```ruby
+ contact.do_not_contact? # => true
+ contact.remove_do_not_contact!
+ contact.do_not_contact? # => false
+ ```
Of course you can use more than contact: `assets`, `emails`, `companies`, `forms`, `points` ...
### Gem provides simple Mautic form submit
There are two options of usage:
1. Use default mautic url from configuration and shortcut class method:
```ruby