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: 173e73fbfbc613a24ac317aacedbed070c7a311f79ce96f1afce275aa839f854
4
- data.tar.gz: 84a8e463d431d639c16c80b983e4a10d663775f68b005d32fb2c71ad526e6d48
3
+ metadata.gz: ef9d7117540d6792f07286b6d6c73ef07124f69cfdb33cd2456614c2d7712ead
4
+ data.tar.gz: 8d3479a3abd3fe8aa0e52dbaaf27b17d99c6e41e85c9edf5948097e2d3494a9c
5
5
  SHA512:
6
- metadata.gz: 44346b0a6091909ec26e95df4cfd9d0d5987f0e34af5bbc0bcc9bc228384b7bb26ad1e56e3cfa55d985185f4adc30c7f892991610913eac9024033c1cd3ea769
7
- data.tar.gz: f9769cac666e008a142e03f3a464dfd975962f6ba99eca98a412c35e0c12eb271043fc3cdbe28ce0aae8cf68d0c74219fb2f1fd46e7bb15481262685de7d4c84
6
+ metadata.gz: 2121dcd3d9c61a860347e487631e2e9b5420bcd691f5f97d86d7ef2bd9e93320af60dc66d0c1b878e75ccfac2a819d2fe826d3f17e8b721ba5876a344d2eb7e6
7
+ data.tar.gz: fc18a7d564dd316258f0e87317575781a197e31e5cdbf0a725a6dcce622192f573c3b388d995fea0c064ba09dfca90f57e5088a073cf248a37de23c2c02d5012
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.9] - 2025-01-28
2
+
3
+ - Fix problem with attributes declaration validator breaking things
4
+
1
5
  ## [0.0.8] - 2025-01-25
2
6
 
3
7
  - Add some serializers to handle active record serialization
@@ -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.8
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-25 00:00:00.000000000 Z
10
+ date: 2025-01-28 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activerecord