method
dup_or_share
rails latest stable - Class:
ActiveModel::Attribute::UserProvidedDefault
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