Module: HTTParty::AllowedFormatsDeprecation

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

Instance Method Summary collapse

Instance Method Details

#const_missing(const) ⇒ Object



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

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