Add PORO serializable base class: ActiveModelSerializers::Model

This commit is contained in:
Benjamin Fleischer
2015-10-09 00:19:03 -05:00
parent 526b56e9a6
commit 124faaa829
10 changed files with 85 additions and 43 deletions

View File

@@ -36,7 +36,7 @@ module ActiveModel
assert_equal({
id: 42,
tags: [
{ 'attributes' => { 'id' => 1, 'name' => '#hash_tag' } }
{ 'id' => 1, 'name' => '#hash_tag' }
]
}.to_json, adapter.serializable_hash[:post].to_json)
end