Sha256: 04100b9c3a62d4d5c0d37e9646d9277c4a00351755766009eb8a0900c98acd69

Contents?: true

Size: 498 Bytes

Versions: 13

Compression:

Stored size: 498 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'sprinkle'

class Object
  def logger
    # ActiveSupport::BufferedLogger was deprecated and replaced by ActiveSupport::Logger in Rails 4.
    # Use ActiveSupport::Logger if available.
    active_support_logger = defined?(ActiveSupport::Logger) ? ActiveSupport::Logger : ActiveSupport::BufferedLogger
    @@__log_file__ ||= StringIO.new
    @@__log__ = active_support_logger.new @@__log_file__, active_support_logger::Severity::INFO
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sprinkle-0.7.4 spec/spec_helper.rb
sprinkle-0.7.3 spec/spec_helper.rb
sprinkle-0.7.2 spec/spec_helper.rb
sprinkle-0.7.1.1 spec/spec_helper.rb
sprinkle-0.7.1 spec/spec_helper.rb
sprinkle-0.7 spec/spec_helper.rb
sprinkle-0.6.2 spec/spec_helper.rb
sprinkle-0.6.1.1 spec/spec_helper.rb
sprinkle-0.6.1 spec/spec_helper.rb
sprinkle-0.6.0 spec/spec_helper.rb
sprinkle-0.5.2 spec/spec_helper.rb
sprinkle-0.5.1.1 spec/spec_helper.rb
sprinkle-0.5.1 spec/spec_helper.rb