Skip to content

Commit

Permalink
use mkdir_p
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Aug 23, 2009
1 parent 6630311 commit 9655159
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/tasks/comments_extension_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ namespace :radiant do

desc "Regenerates the initializer for comment sanitizing if it does not yet exist"
task :forced_initialize do
Dir.mkdir('config/initializers') if !File.exist?('config/initializers')
sanitizer_path = File.join(Rails.root, 'config', 'initializers', 'sanitizer.rb')
mkdir_p File.dirname(sanitizer_path), :verbose => false
File.open(sanitizer_path,'w+') do |file|
Expand Down

0 comments on commit 9655159

Please sign in to comment.