Exception: Sprockets::Rails::Helper::AbsoluteAssetPathError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Sprockets::Rails::Helper::AbsoluteAssetPathError
- Defined in:
- lib/sprockets/rails/helper.rb
Instance Method Summary collapse
-
#initialize(bad_path, good_path, prefix) ⇒ AbsoluteAssetPathError
constructor
A new instance of AbsoluteAssetPathError.
Constructor Details
#initialize(bad_path, good_path, prefix) ⇒ AbsoluteAssetPathError
Returns a new instance of AbsoluteAssetPathError.
34 35 36 37 38 |
# File 'lib/sprockets/rails/helper.rb', line 34 def initialize(bad_path, good_path, prefix) msg = "Asset names passed to helpers should not include the #{prefix.inspect} prefix. " << "Instead of #{bad_path.inspect}, use #{good_path.inspect}" super(msg) end |