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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2cfd4b534090019df728bd1403998dec3dfb37c6028c3f423f4688cfaa4cd8f
4
- data.tar.gz: 6d312acaac6c1c97bbaba8e9a2c7a5873af24765f7d473866a5745c3c1e98691
3
+ metadata.gz: a5f8e3136621bfd8b2017c23529c955ff84635a5cd42e2da36628adb039b67e6
4
+ data.tar.gz: d780b6c30a993811b1c3b9547d63bdf2583480379a4c4fa77d000208d7e6fd7c
5
5
  SHA512:
6
- metadata.gz: 6ccf00e83ea0fc8da9fb80b989c16dcfd3b34780359bdc5d6e442041c591dafd3066c14abfa68cfd6d72c1fc3012ce9fced3ef8a71c13c6e236bec788fe679c0
7
- data.tar.gz: 6e9290bbc3c01f72f1b3414a3b74fb2040d547b5fac2762c1ff4ecee1ff1eb40b49e6205319f276cd593c96401417098246842be69ae7dfc13f91d71bc2bbb84
6
+ metadata.gz: 788b38c53b9917a2f5f82d3302190d5ddeebace976b4ebd5d1b348855f538314e30d3abb3c7b90434ba809a31b166f6a41a47748cddf541b5449f4fa31a311e2
7
+ data.tar.gz: efa78974a239b2cb38aa2aab182849d3a1024c060398ae036dcbf57203b9b7604a452724aaa793608a94ae50e7d1659811826e202e3a196636b2ceaf80aca617
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emp_json (1.4.0.pre.g4cafffeae)
4
+ emp_json (1.4.0.pre.g41bf02753)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emp_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.pre.g4cafffeae
4
+ version: 1.4.0.pre.g41bf02753
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom van Kalkeren