Ticket #7452: expected_x_to_define_y_error_message.diff
| File expected_x_to_define_y_error_message.diff, 0.8 kB (added by giles_bowkett, 1 year ago) |
|---|
-
lib/active_support/dependencies.rb
old new 246 246 file_path = search_for_file(path_suffix) 247 247 if file_path && ! loaded.include?(File.expand_path(file_path)) # We found a matching file to load 248 248 require_or_load file_path 249 raise LoadError, "Expected #{file_path} to define #{qualified_name} " unless from_mod.const_defined?(const_name)249 raise LoadError, "Expected #{file_path} to define #{qualified_name}; check your load path" unless from_mod.const_defined?(const_name) 250 250 return from_mod.const_get(const_name) 251 251 elsif mod = autoload_module!(from_mod, const_name, qualified_name, path_suffix) 252 252 return mod