mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Implement has_one's embed objects
This commit is contained in:
@@ -37,6 +37,10 @@ module ActiveModel
|
||||
def key
|
||||
"#{name}_id"
|
||||
end
|
||||
|
||||
def embedded_key
|
||||
name
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user