Fix typo on ActiveRecord::Associations::ClassMethods doc

This commit is contained in:
Rony Vieira 2024-03-25 11:36:50 +01:00
parent 4db9f51259
commit 2f64b9d1ef

@ -1884,7 +1884,7 @@ def has_one(name, scope = nil, **options)
# belongs_to :user, optional: true
# belongs_to :account, default: -> { company.account }
# belongs_to :account, strict_loading: true
# belong_to :note, query_constraints: [:organization_id, :note_id]
# belongs_to :note, query_constraints: [:organization_id, :note_id]
def belongs_to(name, scope = nil, **options)
reflection = Builder::BelongsTo.build(self, name, scope, options)
Reflection.add_reflection self, name, reflection