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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d053924ad96678d323142bb50866aa6524667d2f1ec8d7fdec674b62bff0476e
|
|
4
|
+
data.tar.gz: eb5648235bb6b68e5d40dc387c6d3656edff6b45cef2841709cfa977a83fe31f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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: :
|
|
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: :
|
|
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
|
-
|
|
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
|
data/lib/web47core/version.rb
CHANGED
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.
|
|
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-
|
|
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
|