Permalink
Browse files

Merge pull request #12 from geominty/patch-1

'/dev/null' bug when running data_fabric in a windows environment
  • Loading branch information...
2 parents 2768815 + 131c257 commit be67fd7199f7e1b7fc80a401793b1c24fe27deb4 @mperham mperham committed Jun 16, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/data_fabric.rb
View
@@ -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)

0 comments on commit be67fd7

Please sign in to comment.