dry_serialization 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry_serialization/blueprinter.rb +6 -4
- data/lib/dry_serialization/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: b26528eee6bd9fecfe7a00ca8fe13f93e9d77644acece633b4847da7afbe198f
|
4
|
+
data.tar.gz: '068463e19300b428218067a7408971817468ffa7b338ae1c8cd7a76334d1478e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b883ddac937a0e051a69561d743354c85ec9f1e7509bc3948781edad5e8139962f0a7002cd4be920ea753ebdf6829793a84af6d1886556fe6355e09de00f03
|
7
|
+
data.tar.gz: 0125a39768f48d84f2c9351efa33012963026aca7010609d4dec98021501507f86ab5bb3cdd12723ec3d9f8fd3c32020510c0896206eea606d1405e1a8d72e9a
|
@@ -1,7 +1,9 @@
|
|
1
|
-
module DrySerialization
|
1
|
+
module DrySerialization
|
2
|
+
module Blueprinter
|
3
|
+
|
4
|
+
def serialized_resource(resource, blueprint, options = {})
|
5
|
+
JSON.parse(blueprint.render(resource, options), symbolize_names: true)
|
6
|
+
end
|
2
7
|
|
3
|
-
def serialized_resource(resource, blueprint, options = {})
|
4
|
-
JSON.parse(blueprint.render(resource, options), symbolize_names: true)
|
5
8
|
end
|
6
|
-
|
7
9
|
end
|