提交 d1a2be0f 编写于 作者: J Justin Collins

[Rails3] Autodetect Rails 3 apps

上级 2271a963
* Autodetect Rails 3 applications
## 0.3.1
* Always output a line number in tabbed output format
......
......@@ -243,6 +243,11 @@ abort("Please supply the path to a Rails application.") unless app_path and File
warn "[Notice] Using Ruby #{RUBY_VERSION}. Please make sure this matches the one used to run your Rails application."
if File.exist? app_path + "/script/rails"
OPTIONS[:rails3] = true
warn "[Notice] Detected Rails 3 application. Enabling experimental Rails 3 support."
end
#Load scanner
begin
require 'scanner'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册