أرسل تقرير Active Record Associations: نصائح، خدع وتحذيرات في إطار العمل Ruby on Rails نشر 27 فبراير 2022 في الارتباطات ثنائية a = Author.first b = a.books.first a.first_name == b.writer.first_name # => true a.first_name = 'David' a.first_name == b.writer.first_name # => false لماذا النتيجة الأخيرة كانت false
Active Record Associations: نصائح، خدع وتحذيرات
في إطار العمل Ruby on Rails
نشر
في الارتباطات ثنائية
a = Author.first b = a.books.first
a.first_name == b.writer.first_name # => true
a.first_name = 'David'
a.first_name == b.writer.first_name # => false
لماذا النتيجة الأخيرة كانت false