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

fix adding error on ruby 3.0 #8

Closed

Conversation

mkrajewski90
Copy link

After updating to ruby 3.0, when adding errors there are an error. It's easy to fix - it requires to set explicity key on options.

@Annedj
Copy link

Annedj commented Jun 14, 2022

Could instead do record.errors.add(attribute, :undisposable, **options) as the documentation shows

@mkrajewski90 mkrajewski90 force-pushed the ruby-3.0-error-support branch from bbb8986 to e68317f Compare June 21, 2022 14:31
@mkrajewski90
Copy link
Author

changed

@jarthod
Copy link

jarthod commented Aug 5, 2022

Thanks @mkrajewski90, for the record I merged this fix in my improved branch (#7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants