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.
When using
bootstrap_form
>v5.1.0
with railsv6.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 call
ActiveModel::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