active_typed_store 2.2.0 → 2.3.0
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/Gemfile.lock +1 -1
- data/lib/active_typed_store/store.rb +6 -1
- data/lib/active_typed_store/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: 14bd114be57f358f5e2f39a9ee2c554d2bc150e0b9df39b269081c2b1efc543e
|
4
|
+
data.tar.gz: a7addc73c5a5f5e2147f0b216e4109152aa5d5db44487971de45face6ece273f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2992b768f9374caf908ed316e5f2fd3fcd37de8495bf89988e27e47726be73c2678ccf7827f6299d901db6c282818993f0027b1113028df07cf79130f387024f
|
7
|
+
data.tar.gz: a41889669cb6d36feac7b129f66d65c747ceac9b0e08ff625fb5d598d6175757a8aa089ab1ee78725a3dcdb289745cac2a5efc09aee5fc2a8e0c16e24f445319
|
data/Gemfile.lock
CHANGED
@@ -14,7 +14,12 @@ module ActiveTypedStore
|
|
14
14
|
attrs = Attrs.new(store_attribute)
|
15
15
|
attrs.instance_eval(&)
|
16
16
|
|
17
|
-
|
17
|
+
define_singleton_method(:inherited) do |subclass|
|
18
|
+
super(subclass)
|
19
|
+
subclass.define_attribute(store_attribute.name, CUSTOM_JSON)
|
20
|
+
end
|
21
|
+
|
22
|
+
define_attribute store_attribute.name, CUSTOM_JSON
|
18
23
|
store_accessor store_attribute, attrs.fields
|
19
24
|
|
20
25
|
if ActiveTypedStore.config.hash_safety == :disallow_symbol_keys
|