Authorization config
# avo-2
c
Has authorization_client config changed? Upgrading from 2.39.0 -> 2.4.1 causes this:
Copy code
undefined method 'authorization_client=' for #<Avo::Configuration:0x00007f90992a53d8> (NoMethodError)
Did you mean?  authorization_methods=
l
Hi @calm-gold-48525 I watched the commits between that versions and I didn't noticed any changes on the
authorization_client
In 2.39 it works fine and when you update to 2.40 it breaks?
c
Correct. Rolling back to 2.39 eliminates the problem.
Interesting, upon upgrading from 2.39 -> 2.4, there is also this:
Copy code
WARNING: Zeitwerk defines the constant Generators after the directory
To prevent that, please configure the loader to ignore it:

    loader.ignore("#{__dir__}/generators")
l
Hmm there are only 3 merged PRs from 39 to 40. Most of the PRs have gems updates, maybe 1 gem update breaked your configruation? Can you give us a little reproduction repository where this is happening or can you indicate whitch configuration makes this errors to raise?
c
Here's the full message from 2.40 and 2.41:
The relevant config is:
## == Authentication == config.current_user_method = :current_user config.authenticate_with do authenticate_user! end ## == Authorization == config.authorization_methods = { index: 'index?', show: 'show?', edit: 'edit?', new: 'new?', update: 'update?', create: 'create?', destroy: 'destroy?', search: 'search?', } config.raise_error_on_missing_policy = true config.authorization_client = :pundit