effective_mailchimp 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: 214e9412954d0415e5263797289e58956f53b56828715aaf390e7c9d7db09f61
4
- data.tar.gz: 6a029f0bb604421755c58cfa5f988d581cc688f990de102901f2e5938a643980
3
+ metadata.gz: 535f050cd4e6f5a4419ddecb931c864f2f0461b936a822db66631619ba1ed3f1
4
+ data.tar.gz: 7410b8b797f397bdecbcad0bddb78fe43a7779f07aa858ec710a5489063c2ac7
5
5
  SHA512:
6
- metadata.gz: 8e6b26604ad0d1c0e094706da41be5280f757073747a2203de09854990562f0a947022f3e05223c1e38bca818c77840d320a589d3bd1968f624a1dfd26b9e911
7
- data.tar.gz: 18513f661502df66716ddf9b293ae05fd1b5d14c6e2ff68678172b3b3d4d90b606238dfe98979f38cf85fefa8562e92e8fa0dbc9b85e1ce2dd08ce247ca8100d
6
+ metadata.gz: 59c142b817e13988549b669eb9c73419f090e751c106b6b50e9d0978e810161dcba11dffd0fdc22220de93754dd38e1bedf890905d640f988c8485b882749d2a
7
+ data.tar.gz: 0643a72575207d3e4e0a5aa5f78e92c0e46386e617b3a2c400764b99f8a5a8f501891dc6ace45c373c702d18da5fad3af53b018ee0a314890457766e23bfb9d9
@@ -29,6 +29,10 @@ module EffectiveMailchimpUser
29
29
  has_many :mailchimp_lists, -> { Effective::MailchimpList.sorted }, through: :mailchimp_list_members, class_name: 'Effective::MailchimpList'
30
30
  accepts_nested_attributes_for :mailchimp_lists, allow_destroy: true
31
31
 
32
+ scope :deep_effective_mailchimp_user, -> {
33
+ includes(mailchimp_list_members: [:mailchimp_list])
34
+ }
35
+
32
36
  # The user updated the form
33
37
  after_commit(if: -> { mailchimp_member_update_required? }) do
34
38
  EffectiveMailchimpUpdateJob.perform_later(self)
@@ -1,3 +1,3 @@
1
1
  module EffectiveMailchimp
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_mailchimp
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
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-24 00:00:00.000000000 Z
11
+ date: 2023-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails