Exception: Sprockets::Rails::Helper::AssetNotPrecompiled

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

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ AssetNotPrecompiled


9
10
11
12
13
14
15
# File 'lib/sprockets/rails/helper.rb', line 9

def initialize(source)
  msg = "Asset was not declared to be precompiled in production.\n" +
        "Add `Rails.application.config.assets.precompile += " +
        "%w( #{source} )` to `config/initializers/assets.rb` and " +
        "restart your server"
  super(msg)
end