spam_email icon indicating copy to clipboard operation
spam_email copied to clipboard

<< is deprecated, we should be using .add

Open wesleyeewong opened this issue 3 years ago • 0 comments

As specified in the ActiveModel::Errors class using << is deprecated, we should be using g.add instead.

https://github.com/rails/rails/blob/6-1-stable/activemodel/lib/active_model/errors.rb#L645-L651

I added the model_name method so the specs would pass, it is trying to resolve model_name somewhere, and fails b/c it's an anonymous class.

wesleyeewong avatar Apr 01 '21 08:04 wesleyeewong