method

dup_or_share

rails latest stable - Class: ActiveModel::Attribute

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

dup_or_share()
public

No documentation available.

# File activemodel/lib/active_model/attribute.rb, line 99
    def dup_or_share # :nodoc:
      if @type.mutable?
        dup
      else
        self # If the underlying type is immutable we can get away with not duping
      end
    end