aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/base.rb
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2013-11-01 10:39:06 +0100
committerArun Agrawal <arunagw@gmail.com>2013-11-01 13:47:23 +0100
commitc10a78124c1c32f8ce3a92888863b9b258efcc06 (patch)
treec21a5710a6a5246f838a276dd7051caf2a8892b2 /railties/lib/rails/generators/base.rb
parent026b6daa05a5712ef84b687eb742f88feb3ca886 (diff)
downloadrails-c10a78124c1c32f8ce3a92888863b9b258efcc06.tar.gz
rails-c10a78124c1c32f8ce3a92888863b9b258efcc06.tar.bz2
rails-c10a78124c1c32f8ce3a92888863b9b258efcc06.zip
More Warnings removed for ruby trunk
Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
Diffstat (limited to 'railties/lib/rails/generators/base.rb')
-rw-r--r--railties/lib/rails/generators/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/base.rb b/railties/lib/rails/generators/base.rb
index 681332a144..71f732b16d 100644
--- a/railties/lib/rails/generators/base.rb
+++ b/railties/lib/rails/generators/base.rb
@@ -212,7 +212,7 @@ module Rails
return unless base_name && generator_name
return unless default_generator_root
path = File.join(default_generator_root, 'templates')
- path if File.exists?(path)
+ path if File.exist?(path)
end
# Returns the base root for a common set of generators. This is used to dynamically
@@ -369,12 +369,12 @@ module Rails
source_root && File.expand_path("../USAGE", source_root),
default_generator_root && File.join(default_generator_root, "USAGE")
]
- paths.compact.detect { |path| File.exists? path }
+ paths.compact.detect { |path| File.exist? path }
end
def self.default_generator_root
path = File.expand_path(File.join(base_name, generator_name), base_root)
- path if File.exists?(path)
+ path if File.exist?(path)
end
end