mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #44102 from haberbyte/fix_autoloading_doc_typo
Fix typo in autoloading docs [ci-skip]
This commit is contained in:
commit
2b05b25809
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ ApiGateway.endpoint = "https://example.com" # DO NOT DO THIS
|
|||
|
||||
a reloaded `ApiGateway` would have a `nil` endpoint, because the code above does not run again.
|
||||
|
||||
You can still set things up during boot, but you need to wrap them in a `to_prepare` block, which is runs on boot, and after each reload:
|
||||
You can still set things up during boot, but you need to wrap them in a `to_prepare` block, which runs on boot, and after each reload:
|
||||
|
||||
```ruby
|
||||
# config/initializers/api_gateway_setup.rb
|
||||
|
|
Loading…
Reference in a new issue