mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix fields option to restrict relationships as well.
This commit is contained in:
@@ -60,7 +60,7 @@ module ActiveModel
|
||||
def test_limiting_fields
|
||||
actual = ActiveModel::SerializableResource.new(
|
||||
[@first_post, @second_post], adapter: :json_api,
|
||||
fields: { posts: ['title'] })
|
||||
fields: { posts: %w(title comments blog author) })
|
||||
.serializable_hash
|
||||
expected = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user