Skip to content

Commit

Permalink
Wrap guide examples by hand
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Oct 11, 2021
1 parent 0a13dc8 commit 23076ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions guides/source/classic_to_zeitwerk_howto.md
Expand Up @@ -180,7 +180,9 @@ If your application uses `Concerns` as namespace, you have two options:

```ruby
# config/initializers/zeitwerk.rb
ActiveSupport::Dependencies.autoload_paths.delete("#{Rails.root}/app/models/concerns")
ActiveSupport::Dependencies.
autoload_paths.
delete("#{Rails.root}/app/models/concerns")
```

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

```ruby
# config/initializers/zeitwerk.rb
ActiveSupport::Dependencies.autoload_paths.delete("#{Rails.root}/app/api")
ActiveSupport::Dependencies.
autoload_paths.
delete("#{Rails.root}/app/api")
```

### Autoloaded Constants and Explicit Namespaces
Expand Down

0 comments on commit 23076ab

Please sign in to comment.