We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dup
ActiveModel::Serializer::Associations#associate
1 parent 34e5faa commit 8ac1f10Copy full SHA for 8ac1f10
lib/active_model/serializer/associations.rb
@@ -76,8 +76,6 @@ def has_one(name, options = {}, &block)
76
# @api private
77
#
78
def associate(reflection)
79
- self._reflections = _reflections.dup
80
-
81
self._reflections << reflection
82
end
83
0 commit comments