Exception: AbstractController::Helpers::DeprecatedMissingHelperError
Instance Method Summary collapse
-
#initialize(error, path) ⇒ DeprecatedMissingHelperError
constructor
A new instance of DeprecatedMissingHelperError.
Methods inherited from LoadError
Methods inherited from Exception
Constructor Details
#initialize(error, path) ⇒ DeprecatedMissingHelperError
Returns a new instance of DeprecatedMissingHelperError.
28 29 30 31 32 33 34 35 36 37 38 |
# 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 |