mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove the noisy lines involving AS::Dependencies from the NameError stack trace if a constant cannot be found.
This commit is contained in:
@@ -441,7 +441,10 @@ module ActiveSupport #:nodoc:
|
||||
|
||||
qualified_name = qualified_name_for from_mod, const_name
|
||||
path_suffix = qualified_name.underscore
|
||||
|
||||
trace = caller.reject {|l| l =~ %r{#{__FILE__}}}
|
||||
name_error = NameError.new("uninitialized constant #{qualified_name}")
|
||||
name_error.set_backtrace(trace)
|
||||
|
||||
file_path = search_for_file(path_suffix)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user