Module: WorkOS::Deprecation

Included in:
MFA, Organizations, SSO, UserManagement
Defined in:
lib/workos/deprecation.rb

Overview

Provides helpers for working with deprecated SDK and API features.

Instance Method Summary collapse

Instance Method Details

#warn_deprecation(message) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/workos/deprecation.rb', line 6

def warn_deprecation(message)
  full_message = "[DEPRECATION] #{message}"

  if RUBY_VERSION > '3'
    warn full_message, category: :deprecated
  else
    warn full_message
  end
end