Class: Graphql::Dashboard::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Graphql::Dashboard::ApplicationController
- Defined in:
- lib/graphql/dashboard.rb
Direct Known Subclasses
DetailedTraces::TracesController, LandingsController, Limiters::LimitersController, OperationStore::BaseController, StaticsController, Subscriptions::BaseController
Instance Method Summary collapse
Instance Method Details
#schema_class ⇒ Object
98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/graphql/dashboard.rb', line 98 def schema_class @schema_class ||= begin schema_param = request.query_parameters["schema"] || params[:schema] case schema_param when Class schema_param when String schema_param.constantize else raise "Missing `params[:schema]`, please provide a class or string to `mount GraphQL::Dashboard, schema: ...`" end end end |