class method
self.new
Ruby on Rails 7.0.10
Since v4.1.16 Last seen in v7.0.10Signature
self.new(error, path)
No documentation comment.
Parameters
-
errorreq -
pathreq
Source
# File actionpack/lib/abstract_controller/helpers.rb, line 27
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
Defined in actionpack/lib/abstract_controller/helpers.rb line 27
· View on GitHub
· Improve this page
· Find usages on GitHub