Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #12 from geominty/patch-1

'/dev/null' bug when running data_fabric in a windows environment
  • Loading branch information...
commit be67fd7199f7e1b7fc80a401793b1c24fe27deb4 2 parents 2768815 + 131c257
@mperham mperham authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/data_fabric.rb
View
3  lib/data_fabric.rb
@@ -41,7 +41,8 @@
module DataFabric
def self.logger
- @logger ||= ActiveRecord::Base.logger || Logger.new('/dev/null')
+ devnull = RUBY_PLATFORM =~ /w32/ ? 'nul' : '/dev/null'
+ @logger ||= ActiveRecord::Base.logger || Logger.new(devnull)
end
def self.logger=(log)
Please sign in to comment.
Something went wrong with that request. Please try again.