module ActiveSupport::Dependencies::Blamable

def blame_file!(file)

:nodoc:
Exception file-blaming.
def blame_file!(file)
  (@blamed_files ||= []).unshift file
end

def blamed_files

def blamed_files
  @blamed_files ||= []
end

def copy_blame!(exc)

def copy_blame!(exc)
  @blamed_files = exc.blamed_files.clone
  self
end

def describe_blame

def describe_blame
  return nil if blamed_files.empty?
  "This error occurred while loading the following files:\n   #{blamed_files.join "\n   "}"
end