1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Daniel Colson 796d8599f3 Fix collection_singular_ids= bug
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.
2017-02-02 22:26:49 -05:00
..
active_record Fix collection_singular_ids= bug 2017-02-02 22:26:49 -05:00
rails/generators move db_migrate_path method to Migration module 2017-01-22 11:44:31 +09:00
active_record.rb Merge pull request #27849 from joevandyk/patch-2 2017-01-31 00:20:23 -05:00