Method: Sequel::Deprecation.deprecate_constant

Defined in:
lib/sequel/deprecated.rb

.deprecate_constant(mod, constant) ⇒ Object

If using ruby 2.3+, use Module#deprecate_constant to deprecate the constant, otherwise do nothing as the ruby implementation does not support constant deprecation.


62
63
64
65
66
67
68
# File 'lib/sequel/deprecated.rb', line 62

def self.deprecate_constant(mod, constant)
  # :nocov:
  if RUBY_VERSION > '2.3'
  # :nocov:
    mod.deprecate_constant(constant)
  end
end