active_model_serializers/lib/active_model/serializer/adapter
Yohan Robert 3cbc0541c1 Fix bug displaying nil for relationship link href
When using the relationship link with a block, calling "meta" without "href", e.g.
has_one :bio do
  link :related do
    meta id: 1
  end
end

results in in a nil "href", e.g.
{ links: { posts: { related: { href: nil, meta: { id: 1 } }  } } }.
According to JSONAPI, we should be able to use meta without href
(http://jsonapi.org/format/#document-links).
2016-02-15 09:26:53 +01:00
..
json Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
json_api Fix bug displaying nil for relationship link href 2016-02-15 09:26:53 +01:00
attributes.rb support read_multi 2016-01-05 20:55:34 +08:00
base.rb Move meta/meta_key handling inside adapter. 2015-10-05 19:06:50 +02:00
cached_serializer.rb Merge branch 'LcpMarvel-support_read_multi' 2016-02-11 00:48:48 -06:00
fragment_cache.rb Preserve the serializer type when fragment caching 2016-02-09 22:35:32 -06:00
json_api.rb Follow up to #1454 2016-02-10 12:57:54 +01:00
json.rb Fix options passing in Json and Attributes adapters. 2015-09-21 07:13:17 +02:00
null.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00