https://avo.cool logo
Upgrading Avo from 3.15 to 3.17 and fun ...
# general
p
I had a heck of time getting Avo 3.16 or later working from 3.15, it turned out to be the addition of the Config gem dependency which adds a Settings object and we had conflicting controllers using the same name. Hope this helps anyone else with the same issue šŸ™‚ https://world.hey.com/jclarke/upgrading-avo-from-3-15-to-3-17-and-fun-with-the-config-gem-7b0e07ba
l
I just noticed that the
config
gem is a dependency for
universalid
, which was added last week: [avo.gemspec - Line 51](https://github.com/avo-hq/avo/blob/main/avo.gemspec#L51) Your experience doesn't sound so fun, thanks for sharing!
l
Hmmm. Yup. Not cool. Let’s see if we can do something about that.
Sorry about that
Hey @purple-analyst-91381. o see that the config gem has a configuration to change the ā€˜Settings’ object to something else. I wonder if that fixes the initial issue.
O know that this is not the most kosher method, but I’d love to see if it fixes it.
Config.setup do |config| config.const_name = 'Settings' # ... end
*sorry. Im on my phone
p
Ah yeah that might fix it as well. I just left the office so can’t try it at the moment.
m
I wonder why universalid needs Config. šŸ¤” will ask Nate
l
yeah. Actual gem configuration
I would like to write a ā€œwould it be possible to drop config as a dependencyā€ message to him, but I’m away from the office.
m
So … I think this should be a note in the docs
l
I imagine it’s not easy, but a gem so ā€œlow-levelā€, I would expect not to have that
Yeah. We’ll see
m
Sounds like it needs a nudge
I agree
l
Thanks for looking into that
p
Thanks for digging into this guys! I’m sure there will be others that run into this as well since Settings is a popular name to use šŸ˜€
l
Yeah. For sure! I use the config gem a lot and really like it and that’s why I didn’t think it would be a problem. But you have a point.
p
@lemon-wall-20836 So this does appear to fix it as well, created an initalizers/config.rb: Config.setup do |config| config.const_name = 'ConfigSettings' end
l
Thanks for the confirmation!