effective_polls 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/effective/polls_mailer.rb +1 -1
- data/lib/effective_polls/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2a4120a9cd2b5fbc37b308c90a3a7be20ce79fb037397a6636ddfdbac3d282c
|
4
|
+
data.tar.gz: 56b216f17de807b939d873abd94a4e01d51d4db0e87b3b70cc10c7a3c29e9b61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9578aa8b280568129a0f6e08e50bd7d468bcf1b437ad4cdbbd33674f6b16e9d84cea00dde23c054619d31f4d04f83d8aa44d66dc1a891f514c93e6a5243db300
|
7
|
+
data.tar.gz: c70422cee9227111893240ba47d54f7779fb65a5a3abd5f8e9c19aaa71756abf46b1a08b28749774a4dc97287e561281ffeefc3c073ca44c8f31373bfda558d7
|
@@ -64,7 +64,7 @@ module Effective
|
|
64
64
|
# Only relevant if the effective_email_templates gem is present
|
65
65
|
def effective_email_templates_assigns(poll_notification, user)
|
66
66
|
raise('expected an Effective::PollNotification') unless poll_notification.kind_of?(Effective::PollNotification)
|
67
|
-
raise('expected a User') unless user.
|
67
|
+
raise('expected a User') unless user.class.try(:effective_polls_user?)
|
68
68
|
|
69
69
|
poll = poll_notification.poll
|
70
70
|
raise('expected poll to be persisted') unless poll&.persisted?
|