lib/train-rest/connection.rb
# Allow switching generic handlers for an API-specific one.
#
# New handler needs to be loaded prior and be derived from TrainPlugins::REST::AuthHandler.
Allow switching generic handlers for an API-specific one.
New handler needs to be loaded prior and be derived from TrainPlugins::REST::AuthHandler.
Allow switching generic handlers for an API - specific one . New handler needs to be loaded prior and be derived from TrainPlugins :: REST :: AuthHandler .
def switch_auth_handler(new_handler)
        return if active_auth_handler == new_handler
        logout
        options[:auth_type] = new_handler.to_sym
        @auth_handler = nil
        login
      end
def switch_auth_handler ( new_handler ) return if active_auth_handler == new_handler logout options [ :auth_type ] = new_handler . to_sym @auth_handler = nil login end
Allow switching generic handlers for an API-specific one.
Allow switching generic handlers for an API - specific one .
new_handler