Skip to content

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

@dannytip

Description

@dannytip

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#add instead.

I believe its coming from this line:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions