mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Merge pull request #1429 from brigade/association-inheritance
Remove unnecessary `dup` in `ActiveModel::Serializer::Associations#associate`
This commit is contained in:
commit
1d8226098f
@ -76,8 +76,6 @@ module ActiveModel
|
||||
# @api private
|
||||
#
|
||||
def associate(reflection)
|
||||
self._reflections = _reflections.dup
|
||||
|
||||
self._reflections << reflection
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user