Skip to content

Commit 23076ab

Browse files
committed
Wrap guide examples by hand
1 parent 0a13dc8 commit 23076ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

guides/source/classic_to_zeitwerk_howto.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ If your application uses `Concerns` as namespace, you have two options:
180180

181181
```ruby
182182
# config/initializers/zeitwerk.rb
183-
ActiveSupport::Dependencies.autoload_paths.delete("#{Rails.root}/app/models/concerns")
183+
ActiveSupport::Dependencies.
184+
autoload_paths.
185+
delete("#{Rails.root}/app/models/concerns")
184186
```
185187

186188
### Having `app` in the autoload paths
@@ -193,7 +195,9 @@ However, you can keep that structure, just delete `app/api` from the autoload pa
193195

194196
```ruby
195197
# config/initializers/zeitwerk.rb
196-
ActiveSupport::Dependencies.autoload_paths.delete("#{Rails.root}/app/api")
198+
ActiveSupport::Dependencies.
199+
autoload_paths.
200+
delete("#{Rails.root}/app/api")
197201
```
198202

199203
### Autoloaded Constants and Explicit Namespaces

0 commit comments

Comments
 (0)