devise_campaignable 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/devise_campaignable/model.rb +2 -2
- data/lib/devise_campaignable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd1c9fd014e96dbf4770e89fcf7fb7e6b44db9fb
|
|
4
|
+
data.tar.gz: bf3723b04a48b23e97b76c5ea52284caf2618637
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e35a3031a6e7ccaad329d47315e54462ef2525e5c231ccbff540212eab00415d5a24ef387efaf879109868ae5c19f0e72eaf32d9d76a07ba94b3ceea7b52fa8a
|
|
7
|
+
data.tar.gz: 6e5b30a8272222b0aadc4a2ef7090b5d59c4d13c3f20aca2128cb5852ff305fc4937057686f500561c6419a6161120869997a445dbea13484b2b5919b1f590fc
|
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# DeviseCampaignable
|
|
2
2
|
|
|
3
|
+
[](http://badge.fury.io/rb/devise_campaignable)
|
|
4
|
+
|
|
3
5
|
Have your users automatically added to and removed from your favourite mail campaign tool. Currently supports [MailChimp](http://mailchimp.com/).
|
|
4
6
|
|
|
5
7
|
Inspired by the now slightly out of date [devise_mailchimp](https://github.com/jcnnghm/devise_mailchimp), this gem works in a similar fashion but with a focus on multi-vendor support, rather than exclusively MailChimp.
|
|
@@ -19,8 +19,8 @@ module Devise
|
|
|
19
19
|
|
|
20
20
|
# Add the callbacks to the user model.
|
|
21
21
|
included do
|
|
22
|
-
# Callback to subscribe the user whenever the record is
|
|
23
|
-
|
|
22
|
+
# Callback to subscribe the user whenever the record is created
|
|
23
|
+
after_create :subscribe
|
|
24
24
|
# Callback to unsubscribe the user when they are destroyed.
|
|
25
25
|
after_destroy :unsubscribe
|
|
26
26
|
end
|