Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #26 from mrcktz/master

disable_stdout didn't work with mingw setup
  • Loading branch information...
commit 9d44803f8b6559c1873817f4c0708236f70b6e5d 2 parents ca80db8 + c36df35
Sandip Ransing authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/railroady/app_diagram.rb
2  lib/railroady/app_diagram.rb
View
@@ -66,7 +66,7 @@ def load_environment
# Prevents Rails application from writing to STDOUT
def disable_stdout
@old_stdout = STDOUT.dup
- STDOUT.reopen(::RUBY_PLATFORM =~ /mswin/ ? "NUL" : "/dev/null")
+ STDOUT.reopen(::RUBY_PLATFORM.downcase =~ /(mswin|mingw)/ ? "NUL" : "/dev/null")
end
# Restore STDOUT
Please sign in to comment.
Something went wrong with that request. Please try again.