Class: GraphqlPlayground::Rails::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/graphql_playground/rails/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#get_endpoint_urlObject



10
11
12
# File 'app/controllers/graphql_playground/rails/application_controller.rb', line 10

def get_endpoint_url
  params[:graphql_path] || raise(%|You must include `graphql_path: "/my/endpoint"` when mounting GraphqlPlayground::Rails::Engine|)
end

#get_playground_versionObject



15
16
17
# File 'app/controllers/graphql_playground/rails/application_controller.rb', line 15

def get_playground_version
  GraphqlPlayground::Rails::PLAYGROUND_VERSION
end

#indexObject



6
7
# File 'app/controllers/graphql_playground/rails/application_controller.rb', line 6

def index
end