emp_json 1.4.0.pre.g4cafffeae → 1.4.0.pre.g41bf02753
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/empathy/emp_json/serializer/fields.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: a5f8e3136621bfd8b2017c23529c955ff84635a5cd42e2da36628adb039b67e6
|
4
|
+
data.tar.gz: d780b6c30a993811b1c3b9547d63bdf2583480379a4c4fa77d000208d7e6fd7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 788b38c53b9917a2f5f82d3302190d5ddeebace976b4ebd5d1b348855f538314e30d3abb3c7b90434ba809a31b166f6a41a47748cddf541b5449f4fa31a311e2
|
7
|
+
data.tar.gz: efa78974a239b2cb38aa2aab182849d3a1024c060398ae036dcbf57203b9b7604a452724aaa793608a94ae50e7d1659811826e202e3a196636b2ceaf80aca617
|
data/Gemfile.lock
CHANGED
@@ -58,7 +58,7 @@ module Empathy
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def value_for_attribute(attr, resource, serialization_params)
|
61
|
-
return resource.try(attr.method) if attr.method.is_a?(Symbol)
|
61
|
+
return resource.try(attr.method) if attr.method.is_a?(Symbol) || attr.method.is_a?(String)
|
62
62
|
|
63
63
|
FastJsonapi.call_proc(attr.method, resource, serialization_params)
|
64
64
|
end
|