diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-30 15:29:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-30 15:29:01 -0700 |
commit | 3060dfce5a45dac0d19ec3d73af3cdebdf0bb20e (patch) | |
tree | 0d0493d78519dae54cb633c7b8c2d279bf2475bd /railties/lib/rails | |
parent | 9696073b2db210745738c8328a6524ea6dc57fff (diff) | |
download | rails-3060dfce5a45dac0d19ec3d73af3cdebdf0bb20e.tar.gz rails-3060dfce5a45dac0d19ec3d73af3cdebdf0bb20e.tar.bz2 rails-3060dfce5a45dac0d19ec3d73af3cdebdf0bb20e.zip |
test some of the rc specification
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 159fa6b761..f2384410ed 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -327,6 +327,10 @@ module Rails argv end + def self.default_rc_file + File.join(File.expand_path('~'), '.railsrc') + end + private def handle_version_request!(argument) @@ -353,7 +357,7 @@ module Rails if (customrc = argv.index{ |x| x.include?("--rc=") }) File.expand_path(argv.delete_at(customrc).gsub(/--rc=/, "")) else - File.join(File.expand_path("~"), '.railsrc') + self.class.default_rc_file end end |