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