Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I18nCache: Fix overtaken class var RuntimeError in Ruby 3.0
This fixes errors like the following in Ruby 3.0: RuntimeError: class variable @@translate_required_html of SimpleForm::Inputs::StringInput is overtaken by SimpleForm::Inputs::Base .../simple_form/lib/simple_form/i18n_cache.rb:13:in `class_variable_get' .../simple_form/lib/simple_form/i18n_cache.rb:13:in `get_i18n_cache' .../simple_form/lib/simple_form/i18n_cache.rb:8:in `i18n_cache' .../simple_form/lib/simple_form/components/labels.rb:9:in `translate_required_html' .../simple_form/lib/simple_form/components/labels.rb:71:in `required_label_text' .../simple_form/lib/simple_form/components/labels.rb:43:in `label_text' .../simple_form/lib/simple_form/components/labels.rb:35:in `label'
- Loading branch information