Exception: Propshaft::MissingAssetError

Inherits:
Error
  • Object
show all
Defined in:
lib/propshaft/errors.rb

Overview

Raised when LoadPath cannot find the requested asset

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingAssetError

Returns a new instance of MissingAssetError.



9
10
11
12
# File 'lib/propshaft/errors.rb', line 9

def initialize(path)
  super
  @path = path
end

Instance Method Details

#messageObject



14
15
16
# File 'lib/propshaft/errors.rb', line 14

def message
  "The asset '#{@path}' was not found in the load path."
end