Exception: Sprockets::Rails::Helper::AssetFilteredError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sprockets/rails/helper.rb

Instance Method Summary collapse

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