russian icon indicating copy to clipboard operation
russian copied to clipboard

ArgumentError in Rails 7.0

Open zhisme opened this issue 2 years ago • 1 comments

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)

zhisme avatar Jan 09 '24 13:01 zhisme

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

stiig avatar Mar 13 '24 09:03 stiig