Skip to content

app/overrides files loading twice #4877

@diegomichel

Description

@diegomichel

Hello, it looks like files under app/overrides are loading twice when following instructions from: https://guides.solidus.io/customization/customizing-the-core/#using-overrides:~:text=config/application.rb

I noticed this issue because I decided to add a constant in one of the overrides and was getting warnings from ruby; besides the warnings, it doesn't seem to cause any other issues.

deface gem seems to be loading the files without a need to change the config/application.rb. deface is not a direct dependency of solidus but comes with recommended gems solidus_auth_devise and solidus_paypal_commerce_platform
Solidus Version:

3.3.0

To Reproduce
Clone the following repo: https://github.com/diegomichel/solidus-override-issue

Run bundle exec rails c. You will see a message printed twice as defined on app/overrides/amazing_store/spree/product/add_global_hidden_flag.rb

Current behavior
App loads app/override files twice

Expected behavior
To load app/override files once

Screenshots
Screenshot 2023-01-25 at 16 07 25
Screenshot 2023-01-25 at 16 07 35

caller diff from first and second time it loads
Screenshot 2023-01-25 at 15 41 56

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedValidated reportgood first issueWanted, but lacking time to work on it and might be a good fit for a first contributiontype:bugError, flaw or fault

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions