associate_jsonb 0.0.1 → 0.0.2
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: 0b7b0080eb6128847d7f71444d31f97bd2b4d09ebd9e0611901867e6a7812b1d
|
4
|
+
data.tar.gz: b3f85301fb398025f1cd732987035def7a79ba743fe51f9c1df337a1992848bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30312348d528402aa1fb3da6c00c0f12cd9cc13fb76d1f5f2a9410d908c69aecf2eadb662d7a243f6fa486bbea093c78de8b8a0806a91390da1c9f75c4e4b0fd
|
7
|
+
data.tar.gz: 485c25f17feda5fdaeab8d105f923470ed28a13f73c07c851854dc6af86a86d1dcf044598748ca3a2abdca1eb64d3550734a017a941ebb64373cda8eaf10b296
|
data/lib/associate_jsonb.rb
CHANGED
@@ -116,7 +116,7 @@ module AssociateJsonb
|
|
116
116
|
|
117
117
|
mixin.class_eval <<-CODE, __FILE__, __LINE__ + 1
|
118
118
|
def #{store}=(given)
|
119
|
-
given = super(
|
119
|
+
given = super(given || {}).with_indifferent_access
|
120
120
|
write_attribute(:#{attribute}, given["#{key}"])
|
121
121
|
given["#{key}"] = #{attribute} unless #{attribute}.nil?
|
122
122
|
super(given)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: associate_jsonb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sampson Crowley
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.3
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 6.0.3.
|
22
|
+
version: 6.0.3.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 6.0.3
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.3.
|
32
|
+
version: 6.0.3.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pg
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- lib/associate_jsonb/connection_adapters/reference_definition.rb
|
145
145
|
- lib/associate_jsonb/reflection.rb
|
146
146
|
- lib/associate_jsonb/relation/where_clause.rb
|
147
|
+
- lib/associate_jsonb/supported_rails_version.rb
|
147
148
|
- lib/associate_jsonb/version.rb
|
148
149
|
- lib/associate_jsonb/with_store_attribute.rb
|
149
150
|
homepage: https://github.com/SampsonCrowley/associate_jsonb
|