Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3a85bd977e
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.304 kb
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'))
Jump to Line
Something went wrong with that request. Please try again.