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