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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 637320f25a72489ada773806629e70590bb5c8435e871a6de40497e2eb6300ed
4
- data.tar.gz: e797d1afdad6be66099b291ec7a809cbb65ef32d7963ca04f03d3ac3d91fe2a9
3
+ metadata.gz: e2a4120a9cd2b5fbc37b308c90a3a7be20ce79fb037397a6636ddfdbac3d282c
4
+ data.tar.gz: 56b216f17de807b939d873abd94a4e01d51d4db0e87b3b70cc10c7a3c29e9b61
5
5
  SHA512:
6
- metadata.gz: 7317013d4063bdd11eaf4a72b6d5ca964c7acb2c35ac29653e9c7043c4e4c40de4e1b4b55079ed023b758f08982a51ca17926e37c5abafbca2462cf0b4a9e657
7
- data.tar.gz: d3fe9a3b04a9ca98c5a27fa956fb82d536db6b9662b6d61a0e8fd954f603673384f6d70c3ec33e51fabde548063b126892508e858be72e616d2c9ff30318e732
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.kind_of?(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?
@@ -1,3 +1,3 @@
1
1
  module EffectivePolls
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_polls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect