russian
russian copied to clipboard
ArgumentError in Rails 7.0
You are passing a block expecting two parameters, so the old hash behavior is simulated. As this is deprecated, this will result in an ArgumentError in Rails 7.0. (called from full_messages at /app/vendor/ruby/3.0.0/bundler/gems/russian-630526b320f9/lib/russian/active_model_ext/custom_error_message.rb:45)
agree with that, for the next errors array
[#<ActiveModel::Error attribute=facility, type=blank, options={:message=>:required, :if=>#<Proc:0x00000001117c7998 .rvm/gems/ruby-3.2.3@mt/gems/activerecord-7.1.3.2/lib/active_record/associations/builder/belongs_to.rb:129 (lambda)>}>]
it can't handle properly because here a message is an attribute of an error