Skip to content

Commit 26c068b

Browse files
author
Carl Thuringer
committed
Do not pass a constant to belongs_to option class_name
1 parent ec118b3 commit 26c068b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/fixtures/active_record.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,8 @@ class Thing < ActiveRecord::Base
622622
end
623623

624624
class RelatedThing < ActiveRecord::Base
625-
belongs_to :from, class_name: Thing, foreign_key: :from_id
626-
belongs_to :to, class_name: Thing, foreign_key: :to_id
625+
belongs_to :from, class_name: "Thing", foreign_key: :from_id
626+
belongs_to :to, class_name: "Thing", foreign_key: :to_id
627627
end
628628

629629
class Question < ActiveRecord::Base

0 commit comments

Comments
 (0)