Sha256: 542a2ec9e0ffa8458f640d648395c4869c5a1633fb66f4a6225a48faddc4113d
Contents?: true
Size: 426 Bytes
Versions: 2
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true module GraphQL module Voyager module Rails class ExplorersController < ActionController::Base helper_method :graphql_endpoint_path def show end def graphql_endpoint_path params[:graphql_path] || raise(%|You must include `graphql_path: "/my/endpoint"` when mounting GraphQL::Voyager::Rails::Engine|) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql-voyager-rails-1.0.2 | app/controllers/graphql/voyager/rails/explorers_controller.rb |
graphql-voyager-rails-1.0.1 | app/controllers/graphql/voyager/rails/explorers_controller.rb |