Sha256: e91261e1ba5461595452866cf04e248e129915e1075d69d7ea158514e043c443

Contents?: true

Size: 205 Bytes

Versions: 3

Compression:

Stored size: 205 Bytes

Contents

# frozen_string_literal: true

module Quilt
  module Logger
    def self.log(string)
      if Rails.logger.nil?
        puts string
      else
        Rails.logger.info(string)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quilt_rails-3.4.0 lib/quilt_rails/logger.rb
quilt_rails-3.3.1 lib/quilt_rails/logger.rb
quilt_rails-3.3.0 lib/quilt_rails/logger.rb