diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-02-08 21:18:48 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2010-02-08 21:18:48 +1000 |
commit | 6e8356147d6b7f33de42439dd5ca7f92b705367f (patch) | |
tree | 51b71171aaad32d8fa2a226ba81a867715eb166f /railties/guides/rails_guides | |
parent | 2928040e236cebc0c845211d074eadfbf019258c (diff) | |
download | rails-6e8356147d6b7f33de42439dd5ca7f92b705367f.tar.gz rails-6e8356147d6b7f33de42439dd5ca7f92b705367f.tar.bz2 rails-6e8356147d6b7f33de42439dd5ca7f92b705367f.zip |
Use mkdir_p so that the output directory is always created.
Diffstat (limited to 'railties/guides/rails_guides')
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index 6a41bde9f6..b931dd6c28 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -11,7 +11,7 @@ module RailsGuides unless ENV["ONLY"] FileUtils.rm_r(@output) if File.directory?(@output) - FileUtils.mkdir(@output) + FileUtils.mkdir_p(@output) end @view_path = File.join(@guides_dir, "source") |