panko_serializer 0.5.3 → 0.5.4
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: b93420802033756fb2a0860184b80bedca36bcf8ab2acb1434a98117f60b9a63
|
4
|
+
data.tar.gz: f48c61a0787fa56f3ac95cf943468b28528d24e718f9ca7c9d054d2dd2f4be0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe061ec2f05881d5e9984af96f459e8a3acc6c427c5f7ecb8ece44b3683ce8ba07c4a078aadc2322fdf32f0f714c9451cb34af6e91af3b9b76941307d2bb1cb
|
7
|
+
data.tar.gz: 812ffa7a72e371700330886a485785c2ccf3bf1bb298ce88a92b144cca5b14a7aaa89af866e4b77c270b466c7a22e23245ec4e7b1d6b9192e2e41deaea383809
|
@@ -40,7 +40,7 @@ static VALUE association_new(int argc, VALUE* argv, VALUE self) {
|
|
40
40
|
association->name_str = argv[1];
|
41
41
|
association->rb_descriptor = argv[2];
|
42
42
|
|
43
|
-
association->name_id = rb_intern_str(association->
|
43
|
+
association->name_id = rb_intern_str(rb_sym2str(association->name_sym));
|
44
44
|
association->descriptor = sd_read(association->rb_descriptor);
|
45
45
|
|
46
46
|
return Data_Wrap_Struct(cAssociation, association_mark, association_free,
|
data/lib/panko/serializer.rb
CHANGED
@@ -76,7 +76,7 @@ module Panko
|
|
76
76
|
|
77
77
|
@_descriptor.has_one_associations << Panko::Association.new(
|
78
78
|
name,
|
79
|
-
name.to_s,
|
79
|
+
options.fetch(:name, name).to_s,
|
80
80
|
Panko::SerializationDescriptor.build(serializer_const, options)
|
81
81
|
)
|
82
82
|
end
|
@@ -89,7 +89,7 @@ module Panko
|
|
89
89
|
|
90
90
|
@_descriptor.has_many_associations << Panko::Association.new(
|
91
91
|
name,
|
92
|
-
name.to_s
|
92
|
+
options.fetch(:name, name).to_s,
|
93
93
|
Panko::SerializationDescriptor.build(serializer_const, options)
|
94
94
|
)
|
95
95
|
end
|
data/lib/panko/version.rb
CHANGED