Module: GraphQL::Deprecation

Defined in:
lib/graphql/deprecation.rb

Class Method Summary collapse

Class Method Details

.warn(message) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/graphql/deprecation.rb', line 5

def self.warn(message)
  if defined?(ActiveSupport::Deprecation)
    ActiveSupport::Deprecation.warn(message)
  else
    Kernel.warn(message)
  end
end