mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
updating tests to match new adapters structure
This commit is contained in:
@@ -12,7 +12,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def fields_for(serializer)
|
||||
key = serializer.json_key || serializer.class.root_name
|
||||
key = serializer.json_key
|
||||
fields[key.to_sym]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user