README.md in trailblazer-loader-0.0.4 vs README.md in trailblazer-loader-0.0.5
- old
+ new
@@ -113,11 +113,11 @@
├── concepts
│ ├── comment
│ │ ├── contracts
│ │ │ ├── create.rb
│ │ │ └── update.rb
-│ │ ├── operation
+│ │ ├── operations
│ │ │ ├── create.rb
│ │ │ └── update.rb
│ │ ├── admin
│ │ │ └── contracts
│ │ │ ├── create.rb
@@ -230,9 +230,24 @@
module Comment::Operation
class Create < Trailblazer::Operation
```
## Debugging
+
+TODO: document PrintFiles
+
+Booting your app fails because the loading order is incorrect? This happens, as we can't cover every possible combination.
+
+In any case, you can use `require` or `require_relative` and load files manually in the file depending on a specific class.
+
+For example, say you derive in another order and you're using the explicit layout.
+
+```ruby
+require_relative "update.rb"
+class Comment::Create < Comment::Update
+```
+
+Instead of painfully reconfiguring, require explicitly and save yourself a lot of pain. BTW, that's how every other programming language does dependency management and even [Matz is not too happy about autoloading anymore](https://twitter.com/yukihiro_matz/status/676170870226706432).
## Customizing
Trailblazer-loader allows you to inject your own sorting and filtering logic, should you refuse to go mainstream.