ActiveRecord
ActiveRecord::Associations
activerecord/lib/active_record/associations/singular_association.rb
View on GitHub