method

dup_or_share

rails latest stable - Class: ActiveModel::Attribute::UserProvidedDefault

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/user_provided_default.rb, line 29
      def dup_or_share # :nodoc:
        # Can't elide dup when the default is a Proc
        # See Attribute#dup_or_share
        if @user_provided_value.is_a?(Proc)
          dup
        else
          super
        end
      end