Sha256: 29453879a6867aec4c3e1380c3f3d505b58c7bcde3bd82a40f91e4e516218001
Contents?: true
Size: 575 Bytes
Versions: 6
Compression:
Stored size: 575 Bytes
Contents
Money.class_eval do ACTIVE_SUPPORT_DEFINED = defined?(ActiveSupport) def self.active_support_deprecator @active_support_deprecator ||= ActiveSupport::Deprecation.new('1.0.0', 'Shopify/Money') end def self.deprecate(message) if ACTIVE_SUPPORT_DEFINED external_callstack = caller_locations.reject do |location| location.to_s.include?('gems/money') end active_support_deprecator.warn("[Shopify/Money] #{message}\n", external_callstack) else Kernel.warn("DEPRECATION WARNING: [Shopify/Money] #{message}\n") end end end
Version data entries
6 entries across 6 versions & 1 rubygems