active_model_serializers/test/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 Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
json_api Fix bug displaying nil for relationship link href 2016-02-15 09:26:53 +01:00
fragment_cache_test.rb Preserve the serializer type when fragment caching 2016-02-09 22:35:32 -06:00
json_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
null_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00