Module: HTTParty::AllowedFormatsDeprecation

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

Instance Method Summary collapse

Instance Method Details

#const_missing(const) ⇒ Object



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

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