Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error upgrading Rails 7.2 #149

Closed
jjf21 opened this issue Nov 4, 2024 · 3 comments
Closed

Error upgrading Rails 7.2 #149

jjf21 opened this issue Nov 4, 2024 · 3 comments
Assignees
Labels

Comments

@jjf21
Copy link

jjf21 commented Nov 4, 2024

Describe the bug

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.

Method assign_attributes is not ActiveRecord's responsability therefore it has been remove from ActiveRecord::AttributeAssignment

Since ActiveModel::AttributesAssignment is no more included in ActiveRecord::AttributeAssignment the method assign_attributes is undefined.

EDIT

It looks like it has been fix for you main branch cbf9245 but hasn't been released.

@jjf21 jjf21 added the bug label Nov 4, 2024
@vipulnsward vipulnsward self-assigned this Nov 4, 2024
@vipulnsward
Copy link
Collaborator

Will publish a new release soon.

@vipulnsward
Copy link
Collaborator

@jjf21 can you upgrade and see if all okay on 3.4.4 version?

@jjf21
Copy link
Author

jjf21 commented Nov 7, 2024

It works, thanks for reactivity !

@jjf21 jjf21 closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants