Exception: Sprockets::Rails::Helper::AbsoluteAssetPathError

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

Instance Method Summary collapse

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