Skip to content

Commit

Permalink
Improve config.assets.initialize_on_precompile guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
htanata committed Apr 4, 2012
1 parent 88f0c20 commit bbe31cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/asset_pipeline.textile
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ cannot see application objects or methods. *Heroku requires this to be false.*
WARNING: If you set +config.assets.initialize_on_precompile+ to false, be sure to
test +rake assets:precompile+ locally before deploying. It may expose bugs where
your assets reference application objects or methods, since those are still
in scope in development mode regardless of the value of this flag. Changing this flag also effects
in scope in development mode regardless of the value of this flag. Changing this flag also affects
engines. Engines can define assets for precompilation as well. Since the complete environment is not loaded,
engines (or other gems) will not be loaded which can cause missing assets.
engines (or other gems) will not be loaded, which can cause missing assets.

Capistrano (v2.8.0 and above) includes a recipe to handle this in deployment. Add the following line to +Capfile+:

Expand Down

0 comments on commit bbe31cc

Please sign in to comment.