Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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  
    246246    file_path = search_for_file(path_suffix) 
    247247    if file_path && ! loaded.include?(File.expand_path(file_path)) # We found a matching file to load 
    248248      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) 
    250250      return from_mod.const_get(const_name) 
    251251    elsif mod = autoload_module!(from_mod, const_name, qualified_name, path_suffix) 
    252252      return mod