Sha256: 3724d9d58c06e2faa7b53a29654321c1f64f7d8623b0d78b6b07a6c507dfcb2a

Contents?: true

Size: 223 Bytes

Versions: 19

Compression:

Stored size: 223 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
quilt_rails-3.2.1 lib/quilt_rails/logger.rb
quilt_rails-3.1.1 lib/quilt_rails/logger.rb
quilt_rails-3.1.0 lib/quilt_rails/logger.rb
quilt_rails-3.0.0 lib/quilt_rails/logger.rb
quilt_rails-2.0.0 lib/quilt_rails/logger.rb
quilt_rails-1.13.0 lib/quilt_rails/logger.rb
quilt_rails-1.12.2 lib/quilt_rails/logger.rb
quilt_rails-1.12.1 lib/quilt_rails/logger.rb
quilt_rails-1.12.0 lib/quilt_rails/logger.rb
quilt_rails-1.11.1 lib/quilt_rails/logger.rb
quilt_rails-1.10.0 lib/quilt_rails/logger.rb
quilt_rails-1.9.2 lib/quilt_rails/logger.rb
quilt_rails-1.9.1 lib/quilt_rails/logger.rb
quilt_rails-1.9.0 lib/quilt_rails/logger.rb
quilt_rails-1.8.0 lib/quilt_rails/logger.rb
quilt_rails-1.7.0 lib/quilt_rails/logger.rb
quilt_rails-1.6.0 lib/quilt_rails/logger.rb
quilt_rails-1.5.0 lib/quilt_rails/logger.rb
quilt_rails-1.4.1 lib/quilt_rails/logger.rb