web47core 1.1.8 → 1.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 975f1a3a3b37ab6603436cd3e763d591dde1b13cc7ae378897b16e43210dc580
4
- data.tar.gz: 82d9918130d0dcf59280dc2d09aebcb587fdeeffdd554eb24f30098b0e3b1f6f
3
+ metadata.gz: d053924ad96678d323142bb50866aa6524667d2f1ec8d7fdec674b62bff0476e
4
+ data.tar.gz: eb5648235bb6b68e5d40dc387c6d3656edff6b45cef2841709cfa977a83fe31f
5
5
  SHA512:
6
- metadata.gz: 9865843ea3e57714c08dcd6febe17e728a40d5ac3c99e0b0a9ee8741c848456f3a9b862fdce2aa032d915d882cee97e7c75d5a91e3e3e4d6cc5be47d04679107
7
- data.tar.gz: e1fa706d97fddb0ef31f32d4c7076be811031e0ce2564fc287f1ff4caa01258ae6d184667866b869fedd58d4f2d4e216787cc2c18f4f3d908d8ef1f447e288dc
6
+ metadata.gz: d9262faca8080174f19ec9b67de0e3c9a1efd2edf87db623521d8cbadd421619068d0d968a8f5abe93bf15ad1e48d415b8d632f2d86fb11c16631056c92c01e8
7
+ data.tar.gz: '088f8e45fa0765124468b117a9652942452bbcb2499dba51d20675962a52ff18c8f7f4b0040607b5074267f7f431c401faf8c32937c85c803a057ea12c9d539f'
@@ -15,7 +15,7 @@ module CoreAccount
15
15
  #
16
16
  # Relationships
17
17
  #
18
- has_many :notifications, dependent: :delete do
18
+ has_many :notifications, dependent: :destroy do
19
19
  def emails
20
20
  where(_type: 'EmailNotification')
21
21
  end
@@ -28,7 +28,7 @@ module CoreAccount
28
28
  where(_type: 'SmsNotification')
29
29
  end
30
30
  end
31
- has_many :templates, dependent: :delete
31
+ has_many :templates, dependent: :destroy
32
32
  embeds_one :smtp_configuration
33
33
  end
34
34
  end
@@ -85,7 +85,11 @@ module StandardModel
85
85
  def many_to_many_associations
86
86
  associations = []
87
87
  reflect_on_all_associations.each do |association|
88
- next unless association.macro == :has_and_belongs_to_many
88
+ if Mongoid::Compatibility::Version.mongoid7_or_newer?
89
+ next unless association.relation == Mongoid::Association::Referenced::HasAndBelongsToMany::Proxy
90
+ else
91
+ next unless association.macro == :has_and_belongs_to_many
92
+ end
89
93
 
90
94
  associations << { association.key => [] }
91
95
  end
@@ -12,7 +12,7 @@ class UserModelAuditLog < UserAuditLog
12
12
  #
13
13
  # Relationships
14
14
  #
15
- belongs_to :model, polymorphic: true, dependent: :nullify
15
+ belongs_to :model, polymorphic: true
16
16
 
17
17
  def search_fields
18
18
  %w[action] + super
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '1.1.8'
4
+ VERSION = '1.1.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-18 00:00:00.000000000 Z
11
+ date: 2021-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -157,7 +157,7 @@ dependencies:
157
157
  - - ">"
158
158
  - !ruby/object:Gem::Version
159
159
  version: '6'
160
- - - "<"
160
+ - - "<="
161
161
  - !ruby/object:Gem::Version
162
162
  version: '7'
163
163
  type: :runtime
@@ -167,7 +167,7 @@ dependencies:
167
167
  - - ">"
168
168
  - !ruby/object:Gem::Version
169
169
  version: '6'
170
- - - "<"
170
+ - - "<="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '7'
173
173
  - !ruby/object:Gem::Dependency