Module: JSONAPI::CompatibilityHelper

Defined in:
lib/jsonapi/compatibility_helper.rb

Class Method Summary collapse

Class Method Details

.deprecation_warn(message) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/jsonapi/compatibility_helper.rb', line 20

def deprecation_warn(message)
  if ActiveSupport::Deprecation.respond_to?(:warn) && ActiveSupport::Deprecation.public_method_defined?(:warn)
    ActiveSupport::Deprecation.warn(message)
  else
    ActiveSupport::Deprecation.send(:warn, message)
  end
end