has_embedded_document 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/has_embedded_document/dsl.rb +2 -2
- data/lib/has_embedded_document/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de802f97a864e399338cfd99bad9f5db54f272cb41e0490cf85215259a68e22a
|
4
|
+
data.tar.gz: 0ce44ab1a913379aa4d3d0ec3a79b15af0c845238843caddb9f5b068aacca83a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f0b28cd44ee2e30b1ce50c39b5c7b937f3115604e236840850b67f4579c3ec70ea944c4a76fc8dc5fbf01755b550f6f5c501a1e10e9dc32dd94d73321828e2
|
7
|
+
data.tar.gz: 69a063ae03ad5b87f7288c6e63ea2e4ee8a9828db98d0ff0d1ce39553f67761c8cf29fd6be1b6719c6cbc1dc8e537b3feb6029316469677b8ef7bd62c781b230
|
data/Gemfile.lock
CHANGED
@@ -99,8 +99,8 @@ module HasEmbeddedDocument
|
|
99
99
|
attributes = value.is_a?(document_class) ? value.attributes : value
|
100
100
|
writer.call(self, attributes)
|
101
101
|
|
102
|
-
document = attributes && document_class.new(attributes.dup)
|
103
|
-
instance_variable_set(:"@__#{name}_cache", document
|
102
|
+
document = attributes && document_class.new(attributes.dup).readonly!
|
103
|
+
instance_variable_set(:"@__#{name}_cache", document)
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_embedded_document
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minty Fresh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|