Method: Graphql::Dashboard::ApplicationController#schema_class
- Defined in:
- lib/graphql/dashboard.rb
#schema_class ⇒ Object
101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/graphql/dashboard.rb', line 101 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 |