Exception: Sprockets::Rails::Helper::AssetAliasUsed

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

Instance Method Summary collapse

Constructor Details

#initialize(actual, expected) ⇒ AssetAliasUsed

Returns a new instance of AssetAliasUsed.



42
43
44
45
46
47
# File 'lib/sprockets/rails/helper.rb', line 42

def initialize(actual, expected)
  msg = "Asset was linked to from an alias rather than its exact path. " +
    "Alias resolving may not be available in production.\n" +
    "Use #{expected.inspect} instead of #{actual.inspect}"
  super(msg)
end