Loading behavior of app/overrides
path in application.rb
#5349
-
Hi, I and my co-developer are currently trying to upgrade our store from 3.1 to 3.4, hoping to go all the way up to 4.1 soon. According to the v3.2 documentation, we should stop using
I notice that when I do this, the files in the directory are loaded twice and result in warnings and errors. Once I remove the above code, rails server starts without an issue and all files in the I looked around for the reason for this behavior, and it seems like the deface gem already puts this path in autoloading. (The code maybe here?) I found a workaround for this, and it is to use a name other than
I am working on a branch that uses solidus 3.4 gems. Thank you for your help🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @rabbitbike, all your assumptions are correct. You were facing the issue because of Deface, and using another directory will fix your warnings. Adding a warning in that post would be good, as I'm sure others will find the same issue. We're building the new admin with customization at its base, so we expect Deface shouldn't be needed anymore. |
Beta Was this translation helpful? Give feedback.
Hi @rabbitbike, all your assumptions are correct. You were facing the issue because of Deface, and using another directory will fix your warnings. Adding a warning in that post would be good, as I'm sure others will find the same issue. We're building the new admin with customization at its base, so we expect Deface shouldn't be needed anymore.