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


19
20
21
22
23
24
# File 'lib/sprockets/rails/helper.rb', line 19

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