test/fixtures/dorm.rb in composite_primary_keys-6.0.7 vs test/fixtures/dorm.rb in composite_primary_keys-6.0.8
- old
+ new
@@ -1,3 +1,3 @@
class Dorm < ActiveRecord::Base
- has_many :rooms, :include => :room_attributes, :primary_key => [:id]
-end
\ No newline at end of file
+ has_many :rooms, -> { includes(:room_attributes) }, :primary_key => [:id]
+end