Fix up caching, especially fragment_cache

This commit is contained in:
Benjamin Fleischer
2016-06-06 21:10:16 -05:00
parent d191342a6c
commit 35a7c81034
5 changed files with 62 additions and 75 deletions

View File

@@ -42,7 +42,7 @@ module ActiveModelSerializers
end
def test_id_defined_on_fragmented
FragmentedSerializer.fragmented(WithDefinedIdSerializer.new(@model))
FragmentedSerializer._fragmented = WithDefinedIdSerializer.new(@model)
test_id(FragmentedSerializer, 'special_id')
end