Commit 7e35f63
Improve engine's requires to remove double inclusions
Into the engine.rb template, with 3db5d7b, we started including
the main gem's .rb file in order to have solidus_support available
when the engine was loaded stand-alone (for example when running
`bin/r migration add ...` in an extension). See the PR that the
above commit belongs to for more details.
But that main .rb file was requiring the engine itself so we can
refactor requires in order to have a clean state.
We also changed the `spree/core` require into `solidus_core` since
they are equivalent (`solidus_core` only requires `spree/core`),
see https://github.com/solidusio/solidus/blob/ed88ebc464d1373dc28f4d69cc9fd12c943ddfbe/core/lib/solidus_core.rb .
Co-authored-by: Rainer Dema <rainerdema@users.noreply.github.com>1 parent c97f42c commit 7e35f63
2 files changed
Lines changed: 2 additions & 5 deletions
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments