simple-serializer 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_serializer.rb +2 -2
- 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: b16bb9cbab2643eb539ea0e1dd1ea4a99dcee623e28a5147d1ea91febd1d3e54
|
4
|
+
data.tar.gz: 673c7795f0c85abb4d0a3802bdfc8a20d0c4d4d2c86775397a49843abf75e00d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5d36e897bbe0256cb91693ff5863b870fb2a2b9c2dacfba496b6119e34e9f982fd397aea037beb8ba749f34ae8812fc1c684ea5315a0ae8a1c6597f58c445fa
|
7
|
+
data.tar.gz: 6e936d6b429421b8c9e53b93fad589ba87ff8218dd29cf8e3c946691c83a1dba95962cc2cf9844f17db92842c4cdb8d29eff9afa981891c43f3d0ea54054dc47
|
data/lib/simple_serializer.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class SimpleSerializer
|
4
|
-
VERSION = '0.1.
|
4
|
+
VERSION = '0.1.4'
|
5
5
|
|
6
6
|
def initialize(object)
|
7
7
|
@object = object
|
@@ -17,7 +17,7 @@ class SimpleSerializer
|
|
17
17
|
attr_reader :fields
|
18
18
|
|
19
19
|
def inherited(sub)
|
20
|
-
sub.instance_variable_set(:@fields, fields.to_h)
|
20
|
+
sub.instance_variable_set(:@fields, fields.to_h.dup)
|
21
21
|
end
|
22
22
|
|
23
23
|
def helpers
|