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

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sprockets_better_errors/sprockets_rails_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ AssetFilteredError

Returns a new instance of AssetFilteredError.



42
43
44
45
46
47
# File 'lib/sprockets_better_errors/sprockets_rails_helper.rb', line 42

def initialize(source)
  msg = "Asset filtered out and will not be served: " <<
        "add `config.assets.precompile += %w( #{source} )` " <<
        "to `config/application.rb` and restart your server"
  super(msg)
end