Module: JWT::Deprecations
- Defined in:
- lib/jwt/deprecations.rb
Overview
Deprecations module to handle deprecation warnings in the gem
Class Method Summary collapse
Class Method Details
.warning(message) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/jwt/deprecations.rb', line 7 def warning() case JWT.configuration.deprecation_warnings when :warn warn("[DEPRECATION WARNING] #{message}") when :once return if record_warned() warn("[DEPRECATION WARNING] #{message}") end end |