Exception: AbstractController::Helpers::DeprecatedMissingHelperError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::LoadError ,
::Exception
|
|
Instance Chain:
self,
::LoadError ,
::Exception
|
|
Inherits: | LoadError |
Defined in: | actionpack/lib/abstract_controller/helpers.rb |
Class Method Summary
- .new(error, path) ⇒ DeprecatedMissingHelperError constructor
Instance Method Summary
::LoadError
- Inherited
#is_missing? | Returns true if the given path name (except perhaps for the “.rb” extension) is the missing file which caused the exception to be raised. |
::Exception
- Inherited
Constructor Details
.new(error, path) ⇒ DeprecatedMissingHelperError
# File 'actionpack/lib/abstract_controller/helpers.rb', line 28
def initialize(error, path) @error = error @path = "helpers/#{path}.rb" set_backtrace error.backtrace if /^#{path}(\.rb)?$/.match?(error.path) super("Missing helper file helpers/%s.rb" % path) else raise error end end