Sha256: c941807a5d3bfb00892e5dc368fe1c4fcb0aa712c556f14b8846972f8bfe05f7

Contents?: true

Size: 393 Bytes

Versions: 13

Compression:

Stored size: 393 Bytes

Contents

require 'securerandom'

module ActiveMerchant #:nodoc:
  module Utils #:nodoc:
    def generate_unique_id
      SecureRandom.hex(16)
    end

    module_function :generate_unique_id

    def deprecated(message)
      warning = Kernel.caller[1] + message
      if respond_to?(:logger) && logger.present?
        logger.warn(warning)
      else
        warn(warning)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre vendor/bundle/gems/active_utils-2.2.3/lib/active_utils/common/utils.rb
tanga_active_utils-2.2.3.1 lib/active_utils/common/utils.rb
tanga_active_utils-2.2.3 lib/active_utils/common/utils.rb
active_utils-2.2.3 lib/active_utils/common/utils.rb
active_utils-2.2.2 lib/active_utils/common/utils.rb
active_utils-2.2.1 lib/active_utils/common/utils.rb
active_utils-2.2.0 lib/active_utils/common/utils.rb
active_utils-2.1.1 lib/active_utils/common/utils.rb
active_utils-2.1.0 lib/active_utils/common/utils.rb
active_utils-2.0.2 lib/active_utils/common/utils.rb
active_utils-2.0.1 lib/active_utils/common/utils.rb
active_utils-2.0.0 lib/active_utils/common/utils.rb
active_utils-1.0.5 lib/active_utils/common/utils.rb