mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
796d8599f3
When the association's primary key is manually set as a symbol and called with an array of strings, CollectionAssociation#ids_writer fails to cast the ids to integers. This is because AssociationReflection#association_primary_key_type and ThroughReflection#association_primary_key_type return the incorrect type, since ModelSchema.type_for_attribute only accepts a string. The result is an ActiveRecord::RecordNotFound error. |
||
---|---|---|
.. | ||
active_record | ||
rails/generators | ||
active_record.rb |