diff options
author | Sam Pohlenz <sam@sampohlenz.com> | 2011-07-03 10:29:04 +0930 |
---|---|---|
committer | Sam Pohlenz <sam@sampohlenz.com> | 2011-07-03 10:29:04 +0930 |
commit | 21344bc33bb732c9c938881ec13bd7fd44d7e9d8 (patch) | |
tree | 0df0729f475a404d376423700baf8f3df8ceaf3b /actionpack/lib/sprockets/helpers | |
parent | 0613f3bcdbd077c3d961f274c390f39f1cd19a31 (diff) | |
download | rails-21344bc33bb732c9c938881ec13bd7fd44d7e9d8.tar.gz rails-21344bc33bb732c9c938881ec13bd7fd44d7e9d8.tar.bz2 rails-21344bc33bb732c9c938881ec13bd7fd44d7e9d8.zip |
Add documentation for asset_prefix and asset_environment
Diffstat (limited to 'actionpack/lib/sprockets/helpers')
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index 748541746c..68bc63105f 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -79,10 +79,19 @@ module Sprockets params[:debug_assets] == 'true' end + # Override to specify an alternative prefix for asset path generation. + # When combined with a custom +asset_environment+, this can be used to + # implement themes that can take advantage of the asset pipeline. + # + # If you only want to change where the assets are mounted, refer to + # +config.assets.prefix+ instead. def asset_prefix Rails.application.config.assets.prefix end + # Override to specify an alternative asset environment for asset + # path generation. The environment should already have been mounted + # at the prefix returned by +asset_prefix+. def asset_environment Rails.application.assets end |