Skip to content

Commit 70faa37

Browse files
committed
Clarify compile disabling assets in production
1 parent 8d6e080 commit 70faa37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Enable expanded asset debugging mode. Individual files will be served to make re
8888

8989
**`config.assets.compile`**
9090

91-
Enables Sprockets compile environment. If disabled, `Rails.application.assets` will be unavailable to any ActionView helpers. View helpers will depend on assets being precompiled to `public/assets` in order to link to them. You can still access the environment by directly calling `Rails.application.assets`.
91+
Enables Sprockets compile environment. If disabled, `Rails.application.assets` will be `nil` to prevent inadvertent compilation calls. View helpers will depend on assets being precompiled to `public/assets` in order to link to them. Initializer could expecting `Rails.application.assets` during boot should be accessing the environment in a `config.assets.configure` block. See below.
9292

9393
**`config.assets.configure`**
9494

0 commit comments

Comments
 (0)