class ActiveModel::Attribute::UserProvidedDefault

def dup_or_share # :nodoc:

:nodoc:
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