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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e918d13d52a6a9f552268e94d638b32654d63dc9ab20d299b163c6ad84ff548
4
- data.tar.gz: 0bf50c0a8b76af41801b7ada33a7b8748a33b99a9ec0095a3a4b6c513cd9e1a1
3
+ metadata.gz: 14bd114be57f358f5e2f39a9ee2c554d2bc150e0b9df39b269081c2b1efc543e
4
+ data.tar.gz: a7addc73c5a5f5e2147f0b216e4109152aa5d5db44487971de45face6ece273f
5
5
  SHA512:
6
- metadata.gz: c99c23d0ac8876b192a71ef57e07fc5668123d1af4865048ce575b657a1761bf54958220bee6ec3c8ecae5ad102c16f605c32fcf9c11294b7c94aea18fc83c54
7
- data.tar.gz: 76b28e162bf1c42c9b9eb47aa338c3708e27e54123461577fe50570925ad6a1c8b46db66f71b6800378056cba5d3dfef976e33ba24d7052edfcaa5b6dd912012
6
+ metadata.gz: 2992b768f9374caf908ed316e5f2fd3fcd37de8495bf89988e27e47726be73c2678ccf7827f6299d901db6c282818993f0027b1113028df07cf79130f387024f
7
+ data.tar.gz: a41889669cb6d36feac7b129f66d65c747ceac9b0e08ff625fb5d598d6175757a8aa089ab1ee78725a3dcdb289745cac2a5efc09aee5fc2a8e0c16e24f445319
data/Gemfile.lock CHANGED
@@ -22,7 +22,7 @@ GIT
22
22
  PATH
23
23
  remote: .
24
24
  specs:
25
- active_typed_store (2.2.0)
25
+ active_typed_store (2.3.0)
26
26
  activemodel
27
27
  activerecord
28
28
  activesupport
@@ -14,7 +14,12 @@ module ActiveTypedStore
14
14
  attrs = Attrs.new(store_attribute)
15
15
  attrs.instance_eval(&)
16
16
 
17
- define_attribute(store_attribute.name, CUSTOM_JSON)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveTypedStore
4
- VERSION = "2.2.0"
4
+ VERSION = "2.3.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_typed_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ermolaev Andrey