mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix 'id' -> :id.
This commit is contained in:
parent
c4faafdebc
commit
04012052a6
@ -53,7 +53,7 @@ module ActiveModel
|
|||||||
end
|
end
|
||||||
|
|
||||||
def resource_identifier_id(serializer)
|
def resource_identifier_id(serializer)
|
||||||
if serializer.respond_to?('id')
|
if serializer.respond_to?(:id)
|
||||||
serializer.id.to_s
|
serializer.id.to_s
|
||||||
else
|
else
|
||||||
serializer.object.id.to_s
|
serializer.object.id.to_s
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user