Skip to content

Commit

Permalink
Merge pull request #7702 from guilleiguaran/remove-manifest-option
Browse files Browse the repository at this point in the history
Remove highly uncommon `config.assets.manifest` option
  • Loading branch information
spastorino committed Sep 20, 2012
2 parents b4018fa + 25d2b17 commit 71b8851
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
7 changes: 6 additions & 1 deletion Gemfile
Expand Up @@ -28,7 +28,12 @@ end
# This needs to be with require false to avoid
# it being automatically loaded by sprockets
gem 'uglifier', require: false
gem 'sprockets-rails', github: 'rails/sprockets-rails'

if ENV['SPROCKETS_RAILS']
gem 'sprockets-rails', path: ENV['SPROCKETS_RAILS']
else
gem 'sprockets-rails', github: 'rails/sprockets-rails'
end

group :doc do
# The current sdoc cannot generate GitHub links due
Expand Down
9 changes: 0 additions & 9 deletions guides/source/asset_pipeline.md
Expand Up @@ -456,12 +456,6 @@ application.css: application-8af74128f904600e41a6e39241464e03.css

The default location for the manifest is the root of the location specified in `config.assets.prefix` ('/assets' by default).

This can be changed with the `config.assets.manifest` option. A fully specified path is required:

```ruby
config.assets.manifest = '/path/to/some/other/location'
```

NOTE: If there are missing precompiled files in production you will get an `Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError` exception indicating the name of the missing file(s).

#### Far-future Expires header
Expand Down Expand Up @@ -728,9 +722,6 @@ config.assets.compile = false
# Generate digests for assets URLs.
config.assets.digest = true

# Defaults to nil and saved in location specified by config.assets.prefix
# config.assets.manifest = YOUR_PATH

# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )
```
Expand Down
2 changes: 0 additions & 2 deletions guides/source/configuring.md
Expand Up @@ -161,8 +161,6 @@ Rails 3.1, by default, is set up to use the `sprockets` gem to manage assets wit

* `config.assets.debug` disables the concatenation and compression of assets. Set to `true` by default in `development.rb`.

* `config.assets.manifest` defines the full path to be used for the asset precompiler's manifest file. Defaults to using `config.assets.prefix`.

* `config.assets.cache_store` defines the cache store that Sprockets will use. The default is the Rails file store.

* `config.assets.version` is an option string that is used in MD5 hash generation. This can be changed to force all files to be recompiled.
Expand Down
5 changes: 5 additions & 0 deletions railties/CHANGELOG.md
@@ -1,5 +1,10 @@
## Rails 4.0.0 (unreleased) ##

* Remove highly uncommon `config.assets.manifest` option for moving the manifest path.
This option is now unsupported in sprockets-rails.

*Guillermo Iguaran & Dmitry Vorotilin*

* Add `config.action_controller.permit_all_parameters` to disable
StrongParameters protection, it's false by default.

Expand Down
1 change: 0 additions & 1 deletion railties/lib/rails/application/configuration.rb
Expand Up @@ -57,7 +57,6 @@ def initialize(*)
@assets.debug = false
@assets.compile = true
@assets.digest = false
@assets.manifest = nil
@assets.cache_store = [ :file_store, "#{root}/tmp/cache/assets/" ]
@assets.js_compressor = nil
@assets.css_compressor = nil
Expand Down

0 comments on commit 71b8851

Please sign in to comment.