bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

DEPRECATION WARNING: Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated #689

Closed dannytip closed 10 months ago

dannytip commented 11 months ago

When using bootstrap_form > v5.1.0 with rails v6.1.7.4 i receive the following deprecation warning:

DEPRECATION WARNING: Calling<<to an ActiveModel::Errors message array in order to add an error is deprecated. Please callActiveModel::Errors#addinstead.

I believe its coming from this line:

https://github.com/bootstrap-ruby/bootstrap_form/blob/main/lib/bootstrap_form/components/validation.rb#L74

lcreid commented 11 months ago

Thanks for taking the time to help us make this gem better. This is a good find. Are you interested in submitting a pull request to fix it?

dannytip commented 11 months ago

@lcreid i'll try take a look when i get a moment.

dannytip commented 11 months ago

PR: https://github.com/bootstrap-ruby/bootstrap_form/pull/690