foobara-active-record-type 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef9d7117540d6792f07286b6d6c73ef07124f69cfdb33cd2456614c2d7712ead
|
4
|
+
data.tar.gz: 8d3479a3abd3fe8aa0e52dbaaf27b17d99c6e41e85c9edf5948097e2d3494a9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2121dcd3d9c61a860347e487631e2e9b5420bcd691f5f97d86d7ef2bd9e93320af60dc66d0c1b878e75ccfac2a819d2fe826d3f17e8b721ba5876a344d2eb7e6
|
7
|
+
data.tar.gz: fc18a7d564dd316258f0e87317575781a197e31e5cdbf0a725a6dcce622192f573c3b388d995fea0c064ba09dfca90f57e5088a073cf248a37de23c2c02d5012
|
data/CHANGELOG.md
CHANGED
@@ -10,12 +10,13 @@ module Foobara
|
|
10
10
|
TypeDeclarations.register_type_declaration(ExtendActiveRecordTypeDeclaration.new)
|
11
11
|
|
12
12
|
detached_entity = Namespace.global.foobara_lookup_type!(:detached_entity)
|
13
|
-
BuiltinTypes.build_and_register!(
|
13
|
+
type = BuiltinTypes.build_and_register!(
|
14
14
|
:active_record,
|
15
15
|
detached_entity,
|
16
16
|
nil,
|
17
17
|
type_module: Foobara::ActiveRecordType
|
18
18
|
)
|
19
|
+
type.remove_processor_by_symbol(:attributes_declaration)
|
19
20
|
|
20
21
|
BuiltinTypes.install_type_declaration_extensions_for(ExtendActiveRecordTypeDeclaration)
|
21
22
|
|
@@ -18,11 +18,6 @@ module Foobara
|
|
18
18
|
type.element_types = active_record_class.foobara_attributes_type.element_types
|
19
19
|
type_name = type.declaration_data[:name]
|
20
20
|
|
21
|
-
# We don't want to check that the active record is valid as if it were a model
|
22
|
-
type.validators.delete_if do |validator|
|
23
|
-
validator.symbol == :attributes_declaration
|
24
|
-
end
|
25
|
-
|
26
21
|
domain = Domain.domain_through_modules(active_record_class)
|
27
22
|
domain.foobara_register_type(type_name, type)
|
28
23
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-active-record-type
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-28 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activerecord
|