Fix 'id' -> :id.

This commit is contained in:
Lucas Hosseini 2015-09-01 15:39:29 +02:00
parent c4faafdebc
commit 04012052a6

View File

@ -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