Module: HTTParty::AllowedFormatsDeprecation

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) const_missing(const)



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

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