Exception: Sprockets::Rails::Helper::DependencyError
- Inherits:
-
StandardError
- Object
- StandardError
- Sprockets::Rails::Helper::DependencyError
- Defined in:
- lib/sprockets_better_errors/sprockets_rails_helper.rb
Overview
BEGIN Hacks for checking if dependencies are listed correctly
Instance Method Summary collapse
-
#initialize(path, dep) ⇒ DependencyError
constructor
A new instance of DependencyError.
Constructor Details
#initialize(path, dep) ⇒ DependencyError
Returns a new instance of DependencyError.
5 6 7 8 9 |
# File 'lib/sprockets_better_errors/sprockets_rails_helper.rb', line 5 def initialize(path, dep) msg = "Asset depends on '#{dep}' to generate properly but has not declared the dependency\n" msg << "Please add: `//= depend_on_asset \"#{dep}\"` to '#{path}'" super msg end |