-
-
Notifications
You must be signed in to change notification settings - Fork 231
Closed
Description
When upgrading my project to new version of Ruby and Rails, the settings stored with minimum and maximum keys are now raising errors:
~/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/activesupport-7.0.4.2/lib/active_support/core_ext/enumerable.rb:44:in minimum': wrong number of arguments (given 0, expected 1) (ArgumentError)`
Ruby version: 3.1.3
Rails version: 7.0.4.2
How to reproduce:
- Initialize new rails project
- Add gem config, then run bundle
- Edit
config/settings.ymlwith:

- In
rails console, try access the value withSettings.user_limit.minimumandSettings.user_limit.maximum
Expect: Should be able to access minimum and maximum with corresponding values of 9 and 99
Reality: Error raises ~/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/activesupport-7.0.4.2/lib/active_support/core_ext/enumerable.rb:44:in minimum': wrong number of arguments (given 0, expected 1) (ArgumentError)`
bill-mfv and rubywarlock