method
initialize_dup
v5.2.3 -
Show latest stable
- Class:
ActiveModel::Attribute
initialize_dup(other)private
No documentation available.
# File activemodel/lib/active_model/attribute.rb, line 149
def initialize_dup(other)
if defined?(@value) && @value.duplicable?
@value = @value.dup
end
end