Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 304 Bytes
def detect_rails_root
dir = Dir.pwd
while (dir != '/') do
return dir if File.exists?(File.join(dir, 'config', 'environment.rb'))
dir = File.dirname(dir)
end
end
if detect_rails_root
DETECTED_RAILS_ROOT = detect_rails_root
end
require_rb_files_from(File.join(ENV['HOME'], '.railsrc.d'))
Something went wrong with that request. Please try again.