Module: HTTParty::AllowedFormatsDeprecation

Included in:
HTTParty, ClassMethods
Defined in:
lib/httparty.rb

Instance Method Summary collapse

Instance Method Details

#const_missing(const) ⇒ Object



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

def const_missing(const)
  if const.to_s =~ /AllowedFormats$/
    Kernel.warn("Deprecated: Use HTTParty::Parser::SupportedFormats")
    HTTParty::Parser::SupportedFormats
  else
    super
  end
end