Exception: Sprockets::Rails::Helper::AssetFilteredError
- Inherits:
-
StandardError
- Object
- StandardError
- Sprockets::Rails::Helper::AssetFilteredError
- Defined in:
- lib/sprockets/rails/helper.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ AssetFilteredError
constructor
A new instance of AssetFilteredError.
Constructor Details
#initialize(source) ⇒ AssetFilteredError
Returns a new instance of AssetFilteredError.
25 26 27 28 29 30 |
# File 'lib/sprockets/rails/helper.rb', line 25 def initialize(source) msg = "Asset filtered out and will not be served: " << "add `Rails.application.config.assets.precompile += %w( #{source} )` " << "to `config/initializers/assets.rb` and restart your server" super(msg) end |