Skip to content

Commit 2f64b9d

Browse files
author
Rony Vieira
committed
Fix typo on ActiveRecord::Associations::ClassMethods doc
1 parent 4db9f51 commit 2f64b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/associations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ def has_one(name, scope = nil, **options)
18841884
# belongs_to :user, optional: true
18851885
# belongs_to :account, default: -> { company.account }
18861886
# belongs_to :account, strict_loading: true
1887-
# belong_to :note, query_constraints: [:organization_id, :note_id]
1887+
# belongs_to :note, query_constraints: [:organization_id, :note_id]
18881888
def belongs_to(name, scope = nil, **options)
18891889
reflection = Builder::BelongsTo.build(self, name, scope, options)
18901890
Reflection.add_reflection self, name, reflection

0 commit comments

Comments
 (0)