Skip to Content Skip to Search
v7.1.0
class AbstractController::Helpers::DeprecatedMissingHelperError < LoadError
Methods
N

Public class methods

new(error, path)

Permalink
Source code GitHub
# 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
Definition files