aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-30 15:29:01 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-30 15:29:01 -0700
commit3060dfce5a45dac0d19ec3d73af3cdebdf0bb20e (patch)
tree0d0493d78519dae54cb633c7b8c2d279bf2475bd /railties/lib/rails
parent9696073b2db210745738c8328a6524ea6dc57fff (diff)
downloadrails-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.rb6
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