During my Rails upgrade from 7.1.4.1 to 7.2.1.2, I got an error:
NoMethodError:
undefined method `assign_attributes' for #<Uploadcare::Rails::Group:0x000000016c9338a8>
After some research, it looks like Uploadcare::Rails::Group rely on the method assign_attributes which is defined in ActiveModel::AttributesAssignment.
Uploadcare::Rails::Group includes Objects::Loadable which includes ActiveRecord::AttributeAssignment.
Describe the bug
During my Rails upgrade from
7.1.4.1
to7.2.1.2
, I got an error:After some research, it looks like
Uploadcare::Rails::Group
rely on the methodassign_attributes
which is defined in ActiveModel::AttributesAssignment.Uploadcare::Rails::Group
includesObjects::Loadable
which includesActiveRecord::AttributeAssignment
.Method
assign_attributes
is notActiveRecord
's responsability therefore it has been remove from ActiveRecord::AttributeAssignmentSince
ActiveModel::AttributesAssignment
is no more included inActiveRecord::AttributeAssignment
the methodassign_attributes
is undefined.EDIT
It looks like it has been fix for you main branch https://github.com/uploadcare/uploadcare-rails/commit/cbf92458e21539b3fcbd8b3b09fc68d27a72c221 but hasn't been released.