File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,10 @@ class << self
126126 autoload :Testing , "graphql/testing"
127127 autoload :Current , "graphql/current"
128128 if defined? ( ::Rails ::Engine )
129- autoload :Dashboard , 'graphql/dashboard'
129+ # This needs to be defined before Rails runs `add_routing_paths`,
130+ # otherwise GraphQL::Dashboard's routes won't have been gathered for loading
131+ # when that initializer runs.
132+ require 'graphql/dashboard'
130133 end
131134end
132135
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module Graphql
3434 class Dashboard < Rails ::Engine
3535 engine_name "graphql_dashboard"
3636 isolate_namespace ( Graphql ::Dashboard )
37- routes . draw do
37+ routes do
3838 root "landings#show"
3939 resources :statics , only : :show , constraints : { id : /[0-9A-Za-z\- .]+/ }
4040
You can’t perform that action at this time.
0 commit comments