method
legitimize_auth_type
v3.0.9 -
Show latest stable
- Class:
ActiveResource::Connection
legitimize_auth_type(auth_type)private
No documentation available.
# File activeresource/lib/active_resource/connection.rb, line 277
def legitimize_auth_type(auth_type)
return :basic if auth_type.nil?
auth_type = auth_type.to_sym
[:basic, :digest].include?(auth_type) ? auth_type : :basic
end