app/models/github_model.rb
# Public: Run an non cached API request to make sure we get something back
#
# Returns true if the resource is found, otherwise false.
Run an non cached API request to make sure we get something back
Returns true if the resource is found, otherwise false.
Run an non cached API request to make sure we get something back Returns true if the resource is found otherwise false .
def on_github?
    response = github_client_request(client, id, headers: GitHub::APIHeaders.no_cache_no_store)
    response ||= github_classroom_request(id, headers: GitHub::APIHeaders.no_cache_no_store)
    response.present?
  end
def on_github? response = github_client_request ( client , id , headers : GitHub :: APIHeaders . no_cache_no_store ) response ||= github_classroom_request ( id , headers : GitHub :: APIHeaders . no_cache_no_store ) response . present? end
Public: Run an non cached API request to make sure we get something back
Returns true if the resource is found, otherwise false.
Public : Run an non cached API request to make sure we get something back Returns true if the resource is found otherwise false .