Sha256: 135dbf4b377d060a9416669b75d52c08f523a0bea0a6ff22fe6b4a69630c9847
Contents?: true
Size: 535 Bytes
Versions: 12
Compression:
Stored size: 535 Bytes
Contents
require 'virtus' require 'json' require 'active_support' require 'moysklad/version' require 'moysklad/attributes_converter' require 'logger' module Moysklad mattr_accessor :custom_logger %w{ entities error resources client universe }.each do |m| require_relative "moysklad/#{m}" end def self.logger= value self.custom_logger = value end def self.logger return custom_logger if custom_logger if defined? Rails Rails.logger else Logger.new STDERR end end end
Version data entries
12 entries across 12 versions & 1 rubygems