simply_notify 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/simply_notify/version.rb +1 -1
- data/lib/simply_notify.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: d59702c28da1b3eb60ba0fbfba431c233c5b480e
|
4
|
+
data.tar.gz: 3fddbf19e496b6c120096c7018a588385c1cf6f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fdc6b7bf85ee34fa32e69be958acb34793bcfd4823faedeadb6569b2576cc15191854891b2a78a0fe5ce396df5eb6fd35452ce52ca93864ea193763a1dce72b
|
7
|
+
data.tar.gz: de74be575dabd5f55868f5dbc5c618b2213cd828265cc5b43a87ec73e4658affa6f5cdae1305116c5103c14293f0929e20250e7d16fcf2ce9a28e986f523cf68
|
data/README.md
CHANGED
@@ -27,9 +27,12 @@ Create the model and views using the generator:
|
|
27
27
|
rails generate notifier
|
28
28
|
|
29
29
|
|
30
|
-
Place a call in the controller where notifications
|
30
|
+
Place a call in the controller where notifications should be created to loop through users emails, after the notifcation is saved:
|
31
31
|
|
32
|
-
|
32
|
+
@users = User.all
|
33
|
+
@users.each do |u|
|
34
|
+
Notifier.new_notification(u.email).deliver_now
|
35
|
+
end
|
33
36
|
|
34
37
|
|
35
38
|
## Contributing
|
data/lib/simply_notify.rb
CHANGED