Exception: Stealth::Controller::Helpers::MissingHelperError
- Inherits:
-
LoadError
- Object
- LoadError
- Stealth::Controller::Helpers::MissingHelperError
- Defined in:
- lib/stealth/controller/helpers.rb
Instance Method Summary collapse
-
#initialize(error, path) ⇒ MissingHelperError
constructor
A new instance of MissingHelperError.
Constructor Details
#initialize(error, path) ⇒ MissingHelperError
Returns a new instance of MissingHelperError.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/stealth/controller/helpers.rb', line 13 def initialize(error, path) @error = error @path = "helpers/#{path}.rb" set_backtrace error.backtrace if error.path =~ /^#{path}(\.rb)?$/ super("Missing helper file helpers/%s.rb" % path) else raise error end end |