method
default
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToAssociation
default(&block)public
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 35
def default(&block)
writer(owner.instance_exec(&block)) if reader.nil?
end