mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
fixed a bug where rubinius was creating the profiling files as directories
This commit is contained in:
@@ -50,7 +50,7 @@ module ActiveSupport
|
||||
protected
|
||||
def create_path_and_open_file(printer_name)
|
||||
fname = "#{output_filename}_#{printer_name}.txt"
|
||||
FileUtils.mkdir_p(fname)
|
||||
FileUtils.mkdir_p(File.dirname(fname))
|
||||
File.open(fname, 'wb') do |file|
|
||||
yield(file)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user