hub_kernel 0.30.0 → 0.30.1
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 +4 -4
- data/lib/hub_kernel/port_associations.rb +2 -2
- data/lib/hub_kernel/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: d6135b4846645d22d1fca91832a4f94263c880087778aebab2b0d7cbb9b71b23
|
|
4
|
+
data.tar.gz: 6218e28dea5ebb69b6dd9ee9068f62c8f018be2dbd360daab941af5e6b4dbd5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ac42371579b28546196c325e506195e2f5ddc67c922ffbd5f094a1845d6fbe4af624a8c80de5b7ffdaabf25f941e98f333b3a11a7038b548aba025e1f084ee1
|
|
7
|
+
data.tar.gz: 0ffd9e2dee0fb06fc87eeff3e8b81b4b3a6277f184634eb08764a7cd58ffbafbc981d367fafa4affdae002dd061b2e3225dc0dee105db587d3e9f58f9a4a8802
|
|
@@ -9,7 +9,7 @@ module HubKernel
|
|
|
9
9
|
refuse_writing_options(name, options)
|
|
10
10
|
refuse_non_hub(name, port)
|
|
11
11
|
port.link_record(record, [ self.name, name ]) do |model|
|
|
12
|
-
belongs_to name, read_only(scope), **options, class_name: model.name
|
|
12
|
+
belongs_to name, read_only(scope), **options, class_name: "::#{model.name}"
|
|
13
13
|
refuse_creating_through(name)
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -19,7 +19,7 @@ module HubKernel
|
|
|
19
19
|
refuse_non_hub(name, port)
|
|
20
20
|
refusal = "#{self.name}'s #{name} link is read-only, so no record can be written through it"
|
|
21
21
|
port.link_record(record, [ self.name, name ]) do |model|
|
|
22
|
-
has_many name, read_only(scope, refusing_list(refusal)), **options, class_name: model.name
|
|
22
|
+
has_many name, read_only(scope, refusing_list(refusal)), **options, class_name: "::#{model.name}"
|
|
23
23
|
refuse_replacing_list(name, refusal)
|
|
24
24
|
end
|
|
25
25
|
end
|
data/lib/hub_kernel/version.rb
CHANGED