class Object
Constants
- ACTIVE_SUPPORT_DEFINED
Public Class Methods
active_support_deprecator()
click to toggle source
# File lib/money/deprecations.rb, line 5 def self.active_support_deprecator @active_support_deprecator ||= ActiveSupport::Deprecation.new('1.0.0', 'Shopify/Money') end
deprecate(message)
click to toggle source
# File lib/money/deprecations.rb, line 9 def self.deprecate(message) if ACTIVE_SUPPORT_DEFINED external_callstack = caller_locations.reject do |location| location.to_s.include?('gems/shopify-money') end active_support_deprecator.warn("[Shopify/Money] #{message}\n", external_callstack) else Kernel.warn("DEPRECATION WARNING: [Shopify/Money] #{message}\n") end end